public class VolatileDataRequestHandler extends Object implements DataRequestHandler
| Modifier and Type | Field and Description | 
|---|---|
| protected DataRequestHandler | next | 
| protected PhysicalTableDictionary | physicalTableDictionary | 
| protected VolatileIntervalsService | volatileIntervalsService | 
| Constructor and Description | 
|---|
| VolatileDataRequestHandler(DataRequestHandler next,
                          PhysicalTableDictionary physicalTableDictionary,
                          VolatileIntervalsService volatileIntervalsService)Detect volatile intervals and attach metadata describing the intervals to the request. | 
| Modifier and Type | Method and Description | 
|---|---|
| static SimplifiedIntervalList | getVolatileIntervalsWithDefault(Map<String,Serializable> context)Return the volatile intervals from the context. | 
| 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
@NotNull protected final PhysicalTableDictionary physicalTableDictionary
@NotNull protected final VolatileIntervalsService volatileIntervalsService
public VolatileDataRequestHandler(DataRequestHandler next, PhysicalTableDictionary physicalTableDictionary, VolatileIntervalsService volatileIntervalsService)
next - The next Request handler to callphysicalTableDictionary - the repository of slice datavolatileIntervalsService - a provider for volatile intervals (per physical table)public boolean handleRequest(RequestContext context, DataApiRequest request, DruidAggregationQuery<?> druidQuery, ResponseProcessor response)
DataRequestHandlerhandleRequest in interface DataRequestHandlercontext - The context for the Requestrequest - The Api Request ObjectdruidQuery - The druid queryresponse - The Async responsepublic static SimplifiedIntervalList getVolatileIntervalsWithDefault(Map<String,Serializable> context)
context - The RequestContext object containing the volatile intervals if anyCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.