public class SplitQueryRequestHandler extends Object implements DataRequestHandler
It creates a common response processor which serves as an accumulator to receive all replies before delegating to the result set processing.
Modifier and Type | Field and Description |
---|---|
protected DataRequestHandler |
next |
static com.codahale.metrics.Meter |
SPLIT_QUERIES |
static com.codahale.metrics.Meter |
SPLITS |
Constructor and Description |
---|
SplitQueryRequestHandler(DataRequestHandler next)
Build a Split Query Request Handler.
|
Modifier and Type | Method and Description |
---|---|
boolean |
handleRequest(RequestContext context,
DataApiRequest request,
DruidAggregationQuery<?> druidQuery,
ResponseProcessor response)
Handle the response, passing the request down the chain as necessary.
|
public static final com.codahale.metrics.Meter SPLIT_QUERIES
public static final com.codahale.metrics.Meter SPLITS
@NotNull protected final DataRequestHandler next
public SplitQueryRequestHandler(DataRequestHandler next)
next
- The next handler in the chainpublic boolean handleRequest(RequestContext context, DataApiRequest request, DruidAggregationQuery<?> druidQuery, ResponseProcessor response)
DataRequestHandler
handleRequest
in interface DataRequestHandler
context
- The context for the Requestrequest
- The Api Request ObjectdruidQuery
- The druid queryresponse
- The Async responseCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.