public class MetricUnionCompositeTable extends BaseCompositePhysicalTable
PhysicalTable
backed by MetricUnionAvailability
.
Under this composite, unioning is only legal if all metrics are uniquely sourced within the source tables.
For example, given two source tables with metrics such that
table1:
+---------+---------+---------+
| metric1 | metric2 | metric3 |
+---------+---------+---------+
table2
+---------+---------+---------+
| metric4 | metric5 | metric6 |
+---------+---------+---------+
the metric schema of this composite table will look like
+---------+---------+---------+---------+---------+---------+
| metric1 | metric2 | metric3 | metric4 | metric5 | metric6 |
+---------+---------+---------+---------+---------+---------+
The available times are based on overlapping availability of participating sources provided by
MetricUnionAvailability
.MetricUnionAvailability
Constructor and Description |
---|
MetricUnionCompositeTable(TableName name,
ZonedTimeGrain timeGrain,
Set<Column> columns,
Set<ConfigPhysicalTable> physicalTables,
Map<String,String> logicalToPhysicalColumnNames,
Map<Availability,Set<String>> availabilitiesToMetricNames)
Constructor.
|
equals, getAllAvailableIntervals, getAvailability, getAvailableIntervals, getDataSourceNames, getName, getPhysicalColumnName, getSchema, getTableAlignment, getTableName, hashCode, setAvailability, toString, withConstraint
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAvailableIntervals, getColumns, getDataSourceNames, getTimeGrain, mapToSchemaAvailability
getDimensions
public MetricUnionCompositeTable(@NotNull TableName name, @NotNull ZonedTimeGrain timeGrain, @NotNull Set<Column> columns, @NotNull Set<ConfigPhysicalTable> physicalTables, @NotNull Map<String,String> logicalToPhysicalColumnNames, @NotNull Map<Availability,Set<String>> availabilitiesToMetricNames)
name
- Name that represents set of fact table names joined togethertimeGrain
- The time grain of the table. The time grain has to satisfy all grains of the tablescolumns
- The columns for this tablephysicalTables
- A set of PhysicalTables that are put together under this table. The tables shall have
zoned time grains that all satisfy the provided timeGrainlogicalToPhysicalColumnNames
- Mappings from logical to physical namesavailabilitiesToMetricNames
- A map of all availabilities to set of metric namesCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.