public interface ResponseProcessor
| Modifier and Type | Method and Description |
|---|---|
HttpErrorCallback |
getErrorCallback(DruidAggregationQuery<?> query)
Callback for handling http errors.
|
FailureCallback |
getFailureCallback(DruidAggregationQuery<?> query)
Callback handler for unexpected failures.
|
ResponseContext |
getResponseContext()
The response context allows state to be injected from construction and visible across response processor
layers as necessary.
|
void |
processResponse(com.fasterxml.jackson.databind.JsonNode json,
DruidAggregationQuery<?> query,
LoggingContext metadata)
Process the response json and respond to the original web request.
|
ResponseContext getResponseContext()
FailureCallback getFailureCallback(DruidAggregationQuery<?> query)
query - The query associated with this failureHttpErrorCallback getErrorCallback(DruidAggregationQuery<?> query)
query - The query associated with this errorvoid processResponse(com.fasterxml.jackson.databind.JsonNode json,
DruidAggregationQuery<?> query,
LoggingContext metadata)
json - The json representing a druid data responsequery - The query with the schema for processing this responsemetadata - The LoggingContext to useCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.