public class SqlDimensionValueLoader extends Object implements DimensionValueLoader
LOG
Constructor and Description |
---|
SqlDimensionValueLoader(PhysicalTableDictionary physicalTableDictionary,
DimensionDictionary dimensionDictionary,
List<String> dimensionsToLoad,
SqlBackedClient sqlBackedClient)
SqlDimensionValueLoader fetches data from Sql 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 SqlDimensionValueLoader(PhysicalTableDictionary physicalTableDictionary, DimensionDictionary dimensionDictionary, List<String> dimensionsToLoad, SqlBackedClient sqlBackedClient)
physicalTableDictionary
- The physical tablesdimensionDictionary
- The dimension dictionary to load dimensions from.dimensionsToLoad
- The dimensions to be loaded.sqlBackedClient
- The sql backed client.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.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
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.