@Singleton public class DruidWorkflow extends Object implements RequestWorkflowProvider
Modifier and Type | Field and Description |
---|---|
protected DataCache<?> |
dataCache |
protected com.fasterxml.jackson.databind.ObjectMapper |
mapper |
protected PartialDataHandler |
partialDataHandler |
protected PhysicalTableDictionary |
physicalTableDictionary |
protected QuerySigningService<?> |
querySigningService |
static String |
REQUEST_WORKFLOW_TIMER |
static String |
RESPONSE_WORKFLOW_TIMER |
protected VolatileIntervalsService |
volatileIntervalsService |
protected DruidWebService |
webService |
protected QueryWeightUtil |
weightUtil |
Constructor and Description |
---|
DruidWorkflow(DataCache<?> dataCache,
DruidWebService webService,
QueryWeightUtil weightUtil,
PhysicalTableDictionary physicalTableDictionary,
PartialDataHandler partialDataHandler,
QuerySigningService<?> querySigningService,
VolatileIntervalsService volatileIntervalsService,
com.fasterxml.jackson.databind.ObjectMapper mapper)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
DataRequestHandler |
buildWorkflow()
Construct a workflow instance with a starting point request handler.
|
public static final String RESPONSE_WORKFLOW_TIMER
public static final String REQUEST_WORKFLOW_TIMER
@NotNull protected final DataCache<?> dataCache
@NotNull protected final DruidWebService webService
@NotNull protected final QueryWeightUtil weightUtil
@NotNull protected final PhysicalTableDictionary physicalTableDictionary
@NotNull protected final PartialDataHandler partialDataHandler
@NotNull protected final QuerySigningService<?> querySigningService
@NotNull protected final com.fasterxml.jackson.databind.ObjectMapper mapper
@NotNull protected final VolatileIntervalsService volatileIntervalsService
@Inject public DruidWorkflow(@NotNull DataCache<?> dataCache, DruidWebService webService, QueryWeightUtil weightUtil, PhysicalTableDictionary physicalTableDictionary, PartialDataHandler partialDataHandler, QuerySigningService<?> querySigningService, VolatileIntervalsService volatileIntervalsService, com.fasterxml.jackson.databind.ObjectMapper mapper)
dataCache
- Response cache to use for caching Druid responseswebService
- Web Service to use for UI-path queriesweightUtil
- Utility for dealing with the weight check stepphysicalTableDictionary
- Collection of all physical tablespartialDataHandler
- Handler for dealing with the partial data stepquerySigningService
- Service to sign a query based on it's segment metadatavolatileIntervalsService
- Service to get volatile intervals frommapper
- JSON mapperpublic DataRequestHandler buildWorkflow()
RequestWorkflowProvider
The workflow should be acyclic, moving a request along until a response is submitted or delegated to an asynchronous response callback.
buildWorkflow
in interface RequestWorkflowProvider
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.