public class DebugRequestHandler extends BaseDataRequestHandler
Modifier and Type | Field and Description |
---|---|
protected DataRequestHandler |
next |
mapper, writer
Constructor and Description |
---|
DebugRequestHandler(DataRequestHandler next,
com.fasterxml.jackson.databind.ObjectMapper mapper)
Build a debugging 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.
|
@NotNull protected final DataRequestHandler next
public DebugRequestHandler(DataRequestHandler next, com.fasterxml.jackson.databind.ObjectMapper mapper)
next
- The request handler to delegate the request to.mapper
- A JSON object mapper, used to parse the JSON response from the weight check.public boolean handleRequest(RequestContext context, DataApiRequest request, DruidAggregationQuery<?> druidQuery, ResponseProcessor response)
DataRequestHandler
context
- The context for the Requestrequest
- The Api Request ObjectdruidQuery
- The druid queryresponse
- The Async responseCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.