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, wait
getAvailableIntervals, getColumns, getDataSourceNames, getTimeGrain, mapToSchemaAvailability
getDimensions
public 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()
PhysicalTable
getTableName
in interface PhysicalTable
public Set<DataSourceName> getDataSourceNames()
PhysicalTable
getDataSourceNames
in interface PhysicalTable
public PhysicalTableSchema getSchema()
Table
getSchema
in interface PhysicalTable
getSchema
in interface Table
public Availability getAvailability()
ConfigPhysicalTable
getAvailability
in interface ConfigPhysicalTable
public org.joda.time.DateTime getTableAlignment()
PhysicalTable
getTableAlignment
in interface PhysicalTable
public Map<Column,SimplifiedIntervalList> getAllAvailableIntervals()
PhysicalTable
getAllAvailableIntervals
in interface PhysicalTable
public SimplifiedIntervalList getAvailableIntervals(DataSourceConstraint constraint)
PhysicalTable
getAvailableIntervals
in interface PhysicalTable
constraint
- The constraint which limits available intervalspublic String getPhysicalColumnName(String logicalName)
PhysicalTable
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.
getPhysicalColumnName
in interface PhysicalTable
logicalName
- 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 PhysicalTable
constraint
- The dataSourceConstraint which narrows the view of the underlying availabilityCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.