public class ConcretePhysicalTableDefinition extends PhysicalTableDefinition
Constructor and Description |
---|
ConcretePhysicalTableDefinition(TableName name,
ZonedTimeGrain timeGrain,
Set<FieldName> metricNames,
Set<? extends DimensionConfig> dimensionConfigs)
Define a physical table using a zoned time grain.
|
ConcretePhysicalTableDefinition(TableName name,
ZonedTimeGrain timeGrain,
Set<FieldName> metricNames,
Set<? extends DimensionConfig> dimensionConfigs,
Map<String,String> logicalToPhysicalNames)
Define a physical table with provided logical to physical column name mappings.
|
Modifier and Type | Method and Description |
---|---|
ConfigPhysicalTable |
build(ResourceDictionaries dictionaries,
DataSourceMetadataService metadataService)
Given the resource dictionaries and a data source metadata service, build the corresponding physical table.
|
Set<TableName> |
getDependentTableNames()
Get the set of physical tables required to build the current physical table.
|
buildColumns, buildLogicalToPhysicalNames, getDimensionConfigs, getLogicalToPhysicalNames, getMetricNames, getName, getTimeGrain
public ConcretePhysicalTableDefinition(TableName name, ZonedTimeGrain timeGrain, Set<FieldName> metricNames, Set<? extends DimensionConfig> dimensionConfigs)
name
- The table nametimeGrain
- The zoned time grainmetricNames
- The Set of metric names on the tabledimensionConfigs
- The dimension configurationspublic ConcretePhysicalTableDefinition(TableName name, ZonedTimeGrain timeGrain, Set<FieldName> metricNames, Set<? extends DimensionConfig> dimensionConfigs, Map<String,String> logicalToPhysicalNames)
name
- The table nametimeGrain
- The zoned time grainmetricNames
- The Set of metric names on the tabledimensionConfigs
- The dimension configurationslogicalToPhysicalNames
- A map from logical column names to physical column namespublic Set<TableName> getDependentTableNames()
PhysicalTableDefinition
getDependentTableNames
in class PhysicalTableDefinition
public ConfigPhysicalTable build(ResourceDictionaries dictionaries, DataSourceMetadataService metadataService)
PhysicalTableDefinition
build
in class PhysicalTableDefinition
dictionaries
- Dictionary containing dimension dictionary and physical table dictionarymetadataService
- Service containing column available interval informationCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.