public class PhysicalTableSchema extends BaseSchema
| Constructor and Description | 
|---|
PhysicalTableSchema(ZonedTimeGrain timeGrain,
                   Iterable<Column> columns,
                   Map<String,String> logicalToPhysicalColumnNames)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
containsLogicalName(String logicalName)
Returns true if the mapping of names is populated for this logical name. 
 | 
boolean | 
equals(Object o)  | 
Set<String> | 
getLogicalColumnNames(String physicalName)
Look up all the logical column names corresponding to a physical name. 
 | 
String | 
getPhysicalColumnName(String logicalName)
Translate a logical name into a physical column name. 
 | 
ZonedTimeGrain | 
getTimeGrain()
Granularity. 
 | 
int | 
hashCode()  | 
String | 
toString()  | 
getColumnNames, getColumns, getGranularity, getMetricColumnNamesclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetColumn, getColumnspublic PhysicalTableSchema(@NotNull
                           ZonedTimeGrain timeGrain,
                           Iterable<Column> columns,
                           @NotNull
                           Map<String,String> logicalToPhysicalColumnNames)
timeGrain - The time grain for this tablecolumns - The columns for this tablelogicalToPhysicalColumnNames - The mapping of logical column names to physical namespublic 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 tablepublic Set<String> getLogicalColumnNames(String physicalName)
physicalName - Physical name to lookup in physical tablepublic boolean containsLogicalName(String logicalName)
logicalName - the name of a metric or dimension columnpublic ZonedTimeGrain getTimeGrain()
public boolean equals(Object o)
equals in class BaseSchemapublic int hashCode()
hashCode in class BaseSchemapublic String toString()
toString in class BaseSchemaCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.