public class SqlRequestHandler extends Object implements DataRequestHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
DATABASE_DRIVER |
static String |
DATABASE_PASSWORD |
static String |
DATABASE_URL |
static String |
DATABASE_USERNAME |
static SystemConfig |
SYSTEM_CONFIG |
| Constructor and Description |
|---|
SqlRequestHandler(DataRequestHandler next,
com.fasterxml.jackson.databind.ObjectMapper mapper)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
handleRequest(RequestContext context,
DataApiRequest request,
DruidAggregationQuery<?> druidQuery,
ResponseProcessor response)
Handles a request by detecting if it's a sql backed table and sending to a sql backend.
|
public static final SystemConfig SYSTEM_CONFIG
public static final String DATABASE_PASSWORD
public static final String DATABASE_USERNAME
public static final String DATABASE_DRIVER
public static final String DATABASE_URL
public SqlRequestHandler(DataRequestHandler next, com.fasterxml.jackson.databind.ObjectMapper mapper)
next - Next Handler in the chainmapper - The mapper for all JSON processingpublic boolean handleRequest(RequestContext context, DataApiRequest request, DruidAggregationQuery<?> druidQuery, ResponseProcessor response)
handleRequest in interface DataRequestHandlercontext - The context for the Request.request - The Api Request Object.druidQuery - The druid query.response - The Async response.Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.