public interface PhysicalTable extends Table
Modifier and Type | Method and Description |
---|---|
Map<Column,SimplifiedIntervalList> |
getAllAvailableIntervals()
Getter for all the available intervals for the corresponding columns configured on the table.
|
default SimplifiedIntervalList |
getAvailableIntervals()
Return a view of the available intervals.
|
default SimplifiedIntervalList |
getAvailableIntervals(DataSourceConstraint constraint)
Return a view of the available intervals for this table given a constraint.
|
default Set<Column> |
getColumns()
Deprecated.
In favor of getting the columns directly from the schema
|
Set<DataSourceName> |
getDataSourceNames()
Get the names of the data sources that back this physical table.
|
default Set<DataSourceName> |
getDataSourceNames(DataSourceConstraint constraint)
Return the
DataSourceName of the dataSources which back this table given a constraint. |
String |
getPhysicalColumnName(String logicalName)
Translate a logical name into a physical column name.
|
PhysicalTableSchema |
getSchema()
The schema for this table.
|
org.joda.time.DateTime |
getTableAlignment()
Get a date time that the table will align to based on grain and available intervals.
|
TableName |
getTableName()
Deprecated.
Use Table::getName instead
|
default ZonedTimeGrain |
getTimeGrain()
Deprecated.
use getSchema().getTimeGrain()
|
default Map<Column,SimplifiedIntervalList> |
mapToSchemaAvailability(Map<String,SimplifiedIntervalList> rawIntervals,
PhysicalTableSchema schema)
Map availabilities in schema-less columns to a
Column keyed availability map for a given table. |
ConstrainedTable |
withConstraint(DataSourceConstraint constraint)
Create a constrained copy of this table.
|
getDimensions, getName
Map<Column,SimplifiedIntervalList> getAllAvailableIntervals()
default SimplifiedIntervalList getAvailableIntervals()
@Deprecated TableName getTableName()
default SimplifiedIntervalList getAvailableIntervals(DataSourceConstraint constraint)
constraint
- The constraint which limits available intervals@Deprecated default Set<Column> getColumns()
Set<DataSourceName> getDataSourceNames()
default Set<DataSourceName> getDataSourceNames(DataSourceConstraint constraint)
DataSourceName
of the dataSources which back this table given a constraint.constraint
- A constraint which may narrow the data sources participating.String getPhysicalColumnName(String logicalName)
NOTE: This defaulting behavior WILL BE REMOVED in future releases.
The defaulting behavior shouldn't be hit for Dimensions that are serialized via the default serializer and are not properly configured with a logical-to-physical name mapping. Dimensions that are not "normal" dimensions, such as dimensions used for DimensionSpecs in queries to do mapping from fact-level dimensions to something else, should likely use their own serialization strategy so as to not hit this defaulting behavior.
logicalName
- Logical name to lookup in physical tablePhysicalTableSchema getSchema()
Table
org.joda.time.DateTime getTableAlignment()
@Deprecated default ZonedTimeGrain getTimeGrain()
ConstrainedTable withConstraint(DataSourceConstraint constraint)
constraint
- The dataSourceConstraint which narrows the view of the underlying availabilitydefault Map<Column,SimplifiedIntervalList> mapToSchemaAvailability(Map<String,SimplifiedIntervalList> rawIntervals, PhysicalTableSchema schema)
Column
keyed availability map for a given table.rawIntervals
- The map of physical name to SimplifiedIntervalList
s as the source availabilityschema
- The schema describing the columns of this table, which includes the logical -> physical
mappingsCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.