public class DruidDimensionValueLoader extends Object implements DimensionValueLoader
Modifier and Type | Field and Description |
---|---|
static String |
DRUID_DIM_LOADER_DIMENSIONS |
static String |
DRUID_DIM_LOADER_ROW_LIMIT |
LOG
Constructor and Description |
---|
DruidDimensionValueLoader(PhysicalTableDictionary physicalTableDictionary,
DimensionDictionary dimensionDictionary,
DruidWebService druidWebService)
DruidDimensionRowProvider fetches data from Druid and adds it to the dimension cache.
|
DruidDimensionValueLoader(PhysicalTableDictionary physicalTableDictionary,
DimensionDictionary dimensionDictionary,
List<String> dimensionsToLoad,
DruidWebService druidWebService)
DruidDimensionRowProvider fetches data from Druid and adds it to the dimension cache.
|
Modifier and Type | Method and Description |
---|---|
Set<DataSource> |
getDataSources()
Gets the list of datasources to query against.
|
Set<Dimension> |
getDimensions()
Gets the list of dimensions to load.
|
void |
query(Dimension dimension,
DataSource dataSource)
Queries for a specific
Dimension against the given DataSource . |
void |
setErrorCallback(HttpErrorCallback errorCallback)
Set a callback if an error occurs while querying.
|
void |
setFailureCallback(FailureCallback failureCallback)
Set a callback if an exception occurs while querying.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dimensionExistsInDataSource, load, queryDimension, updateDimension, updateDimensionWithValue
public static final String DRUID_DIM_LOADER_DIMENSIONS
public static final String DRUID_DIM_LOADER_ROW_LIMIT
public DruidDimensionValueLoader(PhysicalTableDictionary physicalTableDictionary, DimensionDictionary dimensionDictionary, DruidWebService druidWebService)
physicalTableDictionary
- The physical tablesdimensionDictionary
- The dimensions to updatedruidWebService
- The druid webservice to querypublic DruidDimensionValueLoader(PhysicalTableDictionary physicalTableDictionary, DimensionDictionary dimensionDictionary, List<String> dimensionsToLoad, DruidWebService druidWebService)
physicalTableDictionary
- The physical tablesdimensionDictionary
- The dimension dictionary to load dimensions from.dimensionsToLoad
- The dimensions to use.druidWebService
- The druid webservice to query.public void setErrorCallback(HttpErrorCallback errorCallback)
DimensionValueLoader
setErrorCallback
in interface DimensionValueLoader
errorCallback
- The callback to invoke on http errors.public void setFailureCallback(FailureCallback failureCallback)
DimensionValueLoader
setFailureCallback
in interface DimensionValueLoader
failureCallback
- The callback to invoke on exceptions.public Set<Dimension> getDimensions()
DimensionValueLoader
getDimensions
in interface DimensionValueLoader
public Set<DataSource> getDataSources()
DimensionValueLoader
getDataSources
in interface DimensionValueLoader
public void query(Dimension dimension, DataSource dataSource)
DimensionValueLoader
Dimension
against the given DataSource
.query
in interface DimensionValueLoader
dimension
- The dimension to load.dataSource
- The datasource to query values for.Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.