public class LogicalTable extends Object implements Table, Comparable<LogicalTable>
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CATEGORY |
static org.joda.time.ReadablePeriod |
DEFAULT_RETENTION |
Constructor and Description |
---|
LogicalTable(String name,
Granularity granularity,
TableGroup tableGroup,
MetricDictionary metricDictionary)
Constructor
|
LogicalTable(String name,
String category,
String longName,
Granularity granularity,
org.joda.time.ReadablePeriod retention,
String description,
TableGroup tableGroup,
MetricDictionary metricDictionary)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(LogicalTable o) |
String |
getCategory() |
String |
getDescription() |
Granularity |
getGranularity() |
Set<LogicalMetric> |
getLogicalMetrics() |
String |
getLongName() |
String |
getName()
The name for this table.
|
org.joda.time.ReadablePeriod |
getRetention() |
LogicalTableSchema |
getSchema()
The schema for this table.
|
TableGroup |
getTableGroup() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDimensions
public static final String DEFAULT_CATEGORY
public static final org.joda.time.ReadablePeriod DEFAULT_RETENTION
public LogicalTable(@NotNull String name, @NotNull Granularity granularity, TableGroup tableGroup, MetricDictionary metricDictionary)
Sets the Category and Retention to the defaults, and sets the long name and description to the name.
name
- The logical table namegranularity
- The logical table granularitytableGroup
- The tablegroup for the logical tablemetricDictionary
- The metric dictionary to bind tableGroup's metricspublic LogicalTable(@NotNull String name, String category, String longName, @NotNull Granularity granularity, org.joda.time.ReadablePeriod retention, String description, TableGroup tableGroup, MetricDictionary metricDictionary)
name
- The logical table namecategory
- The category of the logical tablelongName
- The long name of the logical tablegranularity
- The logical table time grainretention
- The period the data in the logical table is retained fordescription
- The description for this logical tabletableGroup
- The tablegroup for the logical tablemetricDictionary
- The metric dictionary to bind tableGroup's metricspublic TableGroup getTableGroup()
public Set<LogicalMetric> getLogicalMetrics()
public int compareTo(LogicalTable o)
compareTo
in interface Comparable<LogicalTable>
public String getCategory()
public String getLongName()
public org.joda.time.ReadablePeriod getRetention()
public String getDescription()
public Granularity getGranularity()
public LogicalTableSchema getSchema()
Table
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.