public interface DimensionValueLoader
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
Modifier and Type | Method and Description |
---|---|
default boolean |
dimensionExistsInDataSource(Dimension dimension,
DataSource dataSource)
Checks if a
Dimension exists in a DataSource . |
Set<DataSource> |
getDataSources()
Gets the list of datasources to query against.
|
Set<Dimension> |
getDimensions()
Gets the list of dimensions to load.
|
default void |
load()
Start loading all dimensions.
|
void |
query(Dimension dimension,
DataSource dataSource)
Queries for a specific
Dimension against the given DataSource . |
default void |
queryDimension(Dimension dimension)
Queries a specific dimension.
|
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.
|
default void |
updateDimension(Dimension dimension)
Tell the dimension it's been updated.
|
default void |
updateDimensionWithValue(Dimension dimension,
DimensionRow dimensionRow)
Adds dimension row values to a dimension.
|
default boolean dimensionExistsInDataSource(Dimension dimension, DataSource dataSource)
Dimension
exists in a DataSource
.dimension
- The dimension to look for in the datasource.dataSource
- The datasource to look through for the dimension.default void load()
default void queryDimension(Dimension dimension)
DataSource
if it's table contains the given
Dimension
.dimension
- The dimension to load values for.void query(Dimension dimension, DataSource dataSource)
Dimension
against the given DataSource
.dimension
- The dimension to load.dataSource
- The datasource to query values for.void setErrorCallback(HttpErrorCallback errorCallback)
errorCallback
- The callback to invoke on http errors.void setFailureCallback(FailureCallback failureCallback)
failureCallback
- The callback to invoke on exceptions.Set<Dimension> getDimensions()
Set<DataSource> getDataSources()
default void updateDimension(Dimension dimension)
dimension
- The dimension to update saying it's been loaded.default void updateDimensionWithValue(Dimension dimension, DimensionRow dimensionRow)
dimension
- The dimension to add the row to.dimensionRow
- The dimension row to be added.Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.