public class MetricUnionCompositeTableDefinition extends PhysicalTableDefinition
Modifier and Type | Field and Description |
---|---|
static String |
DUPLICATE_METRIC_FORMAT |
static String |
MISSING_DEPENDANT_TABLE_FORMAT |
static String |
MISSING_METRIC_FORMAT |
static String |
VALIDATION_ERROR_FORMAT |
Constructor and Description |
---|
MetricUnionCompositeTableDefinition(TableName name,
ZonedTimeGrain timeGrain,
Set<FieldName> metricNames,
Set<TableName> dependentTableNames,
Set<? extends DimensionConfig> dimensionConfigs)
Define a physical table using a zoned time grain.
|
MetricUnionCompositeTableDefinition(TableName name,
ZonedTimeGrain timeGrain,
Set<FieldName> metricNames,
Set<TableName> dependentTableNames,
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.
|
Map<ConfigPhysicalTable,Set<String>> |
getTableToMetricsMap(ResourceDictionaries dictionaries)
Returns a map from availability to set of metrics.
|
buildColumns, buildLogicalToPhysicalNames, getDimensionConfigs, getLogicalToPhysicalNames, getMetricNames, getName, getTimeGrain
public static final String MISSING_DEPENDANT_TABLE_FORMAT
public static final String MISSING_METRIC_FORMAT
public static final String DUPLICATE_METRIC_FORMAT
public static final String VALIDATION_ERROR_FORMAT
public MetricUnionCompositeTableDefinition(TableName name, ZonedTimeGrain timeGrain, Set<FieldName> metricNames, Set<TableName> dependentTableNames, Set<? extends DimensionConfig> dimensionConfigs)
name
- The table nametimeGrain
- The zoned time grainmetricNames
- The Set of metric names on the tabledependentTableNames
- The set of dependent table names on the tabledimensionConfigs
- The dimension configurationspublic MetricUnionCompositeTableDefinition(TableName name, ZonedTimeGrain timeGrain, Set<FieldName> metricNames, Set<TableName> dependentTableNames, Set<? extends DimensionConfig> dimensionConfigs, Map<String,String> logicalToPhysicalNames)
name
- The table nametimeGrain
- The zoned time grainmetricNames
- The Set of metric names on the tabledependentTableNames
- The set of dependent table 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 informationpublic Map<ConfigPhysicalTable,Set<String>> getTableToMetricsMap(ResourceDictionaries dictionaries)
dictionaries
- The ResourceDictionaries from which the tables are to be retrievedCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.