public class TableConfig extends Object implements DataSourceConfiguration
| Constructor and Description |
|---|
TableConfig(String name)
Construct the TableConfig from a name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDataSegment(io.druid.timeline.DataSegment dataSegment)
Add a
DataSegment to the existing known datasegments for this table. |
void |
addDimension(String dimension)
Add a dimension to the datasource.
|
void |
addMetric(String metric)
Add a metric to the datasource.
|
List<io.druid.timeline.DataSegment> |
getDataSegments()
Gets a list of
data segments for a datasource in Druid. |
Set<String> |
getDimensions()
Gets the dimensions from the datasource.
|
Set<String> |
getMetrics()
Gets the metrics from the datasource.
|
String |
getName()
Gets the name of the table.
|
TableName |
getTableName()
Gets the
TableName of the current datasource. |
TimeGrain |
getValidTimeGrain()
Gets the valid TimeGrains for the datasource.
|
void |
setTimeGrain(TimeGrain timeGrain)
Sets
TimeGrain of the datasource. |
public TableConfig(String name)
name - Name of the TableConfig.public void addMetric(String metric)
metric - Name of metric to hold in TableConfig.public void addDimension(String dimension)
dimension - Name of dimension to hold in the TableConfig.public void setTimeGrain(TimeGrain timeGrain)
TimeGrain of the datasource.timeGrain - Valid Timegrain to hold in the TableConfig.public void addDataSegment(io.druid.timeline.DataSegment dataSegment)
DataSegment to the existing known datasegments for this table.dataSegment - The DataSegment given by Druid.public String getName()
getName in interface DataSourceConfigurationpublic TableName getTableName()
TableName of the current datasource.getTableName in interface DataSourceConfigurationpublic Set<String> getMetrics()
getMetrics in interface DataSourceConfigurationpublic Set<String> getDimensions()
getDimensions in interface DataSourceConfigurationpublic TimeGrain getValidTimeGrain()
getValidTimeGrain in interface DataSourceConfigurationpublic List<io.druid.timeline.DataSegment> getDataSegments()
DataSourceConfigurationdata segments for a datasource in Druid.getDataSegments in interface DataSourceConfigurationCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.