public abstract class BasePhysicalTable extends Object implements ConfigPhysicalTable
| Constructor and Description |
|---|
BasePhysicalTable(TableName name,
ZonedTimeGrain timeGrain,
Iterable<Column> columns,
Map<String,String> logicalToPhysicalColumnNames,
Availability availability)
Create a physical table.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Map<Column,SimplifiedIntervalList> |
getAllAvailableIntervals()
Getter for all the available intervals for the corresponding columns configured on the table.
|
Availability |
getAvailability()
Get the value of the backing availability instance for this physical table.
|
SimplifiedIntervalList |
getAvailableIntervals(DataSourceConstraint constraint)
Return a view of the available intervals for this table given a constraint.
|
Set<DataSourceName> |
getDataSourceNames()
Get the names of the data sources that back this physical table.
|
String |
getName()
The name for this table.
|
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()
Get the name of the table.
|
int |
hashCode() |
protected void |
setAvailability(Availability availability)
Deprecated.
Should avoid this method and refine testing strategy to remove this method
|
String |
toString() |
ConstrainedTable |
withConstraint(DataSourceConstraint constraint)
Create a constrained copy of this table.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAvailableIntervals, getColumns, getDataSourceNames, getTimeGrain, mapToSchemaAvailabilitygetDimensionspublic BasePhysicalTable(@NotNull
TableName name,
@NotNull
ZonedTimeGrain timeGrain,
@NotNull
Iterable<Column> columns,
@NotNull
Map<String,String> logicalToPhysicalColumnNames,
@NotNull
Availability availability)
name - Fili name of the physical tabletimeGrain - time grain of the tablecolumns - The columns for this physical tablelogicalToPhysicalColumnNames - Mappings from logical to physical namesavailability - The availability of columns in this tablepublic TableName getTableName()
PhysicalTablegetTableName in interface PhysicalTablepublic Set<DataSourceName> getDataSourceNames()
PhysicalTablegetDataSourceNames in interface PhysicalTablepublic PhysicalTableSchema getSchema()
TablegetSchema in interface PhysicalTablegetSchema in interface Tablepublic Availability getAvailability()
ConfigPhysicalTablegetAvailability in interface ConfigPhysicalTablepublic org.joda.time.DateTime getTableAlignment()
PhysicalTablegetTableAlignment in interface PhysicalTablepublic Map<Column,SimplifiedIntervalList> getAllAvailableIntervals()
PhysicalTablegetAllAvailableIntervals in interface PhysicalTablepublic SimplifiedIntervalList getAvailableIntervals(DataSourceConstraint constraint)
PhysicalTablegetAvailableIntervals in interface PhysicalTableconstraint - The constraint which limits available intervalspublic String getPhysicalColumnName(String logicalName)
PhysicalTableNOTE: 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.
getPhysicalColumnName in interface PhysicalTablelogicalName - Logical name to lookup in physical table@Deprecated protected void setAvailability(Availability availability)
availability - The test availability for this tablepublic ConstrainedTable withConstraint(DataSourceConstraint constraint)
withConstraint in interface PhysicalTableconstraint - The dataSourceConstraint which narrows the view of the underlying availabilityCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.