public class ConcreteSqlPhysicalTableDefinition extends ConcretePhysicalTableDefinition
ConcretePhysicalTableDefinition
specific to SQL backed datasources.Constructor and Description |
---|
ConcreteSqlPhysicalTableDefinition(String schemaName,
String timestampColumn,
TableName name,
ZonedTimeGrain timeGrain,
Set<FieldName> metricNames,
Set<? extends DimensionConfig> dimensionConfigs)
Define a sql backed physical table using a zoned time grain.
|
ConcreteSqlPhysicalTableDefinition(String schemaName,
String timestampColumn,
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.
|
getDependentTableNames
buildColumns, buildLogicalToPhysicalNames, getDimensionConfigs, getLogicalToPhysicalNames, getMetricNames, getName, getTimeGrain
public ConcreteSqlPhysicalTableDefinition(String schemaName, String timestampColumn, TableName name, ZonedTimeGrain timeGrain, Set<FieldName> metricNames, Set<? extends DimensionConfig> dimensionConfigs)
schemaName
- The name of sql schema this table is on.timestampColumn
- The name of the timestamp column to be used for the database.name
- The table nametimeGrain
- The zoned time grainmetricNames
- The Set of metric names on the tabledimensionConfigs
- The dimension configurationspublic ConcreteSqlPhysicalTableDefinition(String schemaName, String timestampColumn, TableName name, ZonedTimeGrain timeGrain, Set<FieldName> metricNames, Set<? extends DimensionConfig> dimensionConfigs, Map<String,String> logicalToPhysicalNames)
schemaName
- The name of sql schema this table is on.timestampColumn
- The name of the timestamp column to be used for the database.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 ConfigPhysicalTable build(ResourceDictionaries dictionaries, DataSourceMetadataService metadataService)
PhysicalTableDefinition
build
in class ConcretePhysicalTableDefinition
dictionaries
- Dictionary containing dimension dictionary and physical table dictionarymetadataService
- Service containing column available interval informationCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.