|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lens.cube.metadata.AbstractCubeTable
org.apache.lens.cube.metadata.CubeFactTable
public final class CubeFactTable
| Field Summary |
|---|
| Fields inherited from class org.apache.lens.cube.metadata.AbstractCubeTable |
|---|
LOG |
| Constructor Summary | |
|---|---|
CubeFactTable(String cubeName,
String factName,
List<org.apache.hadoop.hive.metastore.api.FieldSchema> columns,
Map<String,Set<UpdatePeriod>> storageUpdatePeriods)
|
|
CubeFactTable(String cubeName,
String factName,
List<org.apache.hadoop.hive.metastore.api.FieldSchema> columns,
Map<String,Set<UpdatePeriod>> storageUpdatePeriods,
double weight)
|
|
CubeFactTable(String cubeName,
String factName,
List<org.apache.hadoop.hive.metastore.api.FieldSchema> columns,
Map<String,Set<UpdatePeriod>> storageUpdatePeriods,
double weight,
Map<String,String> properties)
|
|
CubeFactTable(org.apache.hadoop.hive.ql.metadata.Table hiveTable)
|
|
| Method Summary | |
|---|---|
void |
addColumns(Collection<org.apache.hadoop.hive.metastore.api.FieldSchema> columns)
Adds or alters the columns passed |
void |
addUpdatePeriod(String storage,
UpdatePeriod period)
Add update period to storage |
void |
alterColumn(org.apache.hadoop.hive.metastore.api.FieldSchema column)
Alters the column if already existing or just adds it if it is new column |
void |
alterCubeName(String cubeName)
Alter the cubeName to which this fact belongs |
void |
alterStorage(String storage,
Set<UpdatePeriod> updatePeriods)
Alter a storage with specified update periods |
boolean |
equals(Object obj)
|
String |
getCubeName()
|
List<String> |
getPartitions(Date fromDate,
Date toDate,
UpdatePeriod interval)
Get partition value strings for given range, for the specified updateInterval |
Set<String> |
getStorages()
|
CubeTableType |
getTableType()
|
Map<String,Set<UpdatePeriod>> |
getUpdatePeriods()
|
List<String> |
getValidColumns()
Return valid columns of the fact, which can be specified by the property MetastoreUtil.getValidColumnsKey(getName()) |
int |
hashCode()
|
boolean |
isAggregated()
|
static UpdatePeriod |
maxIntervalInRange(Date from,
Date to,
Set<UpdatePeriod> updatePeriods)
Get the max update period for the given range and available update periods |
void |
removeUpdatePeriod(String storage,
UpdatePeriod period)
Remove update period from storage |
void |
setAggregated(boolean isAggregated)
|
| Methods inherited from class org.apache.lens.cube.metadata.AbstractCubeTable |
|---|
addProperties, alterWeight, getAllFieldNames, getColumns, getName, getProperties, getWeight, removeProperty, toString, weight |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CubeFactTable(org.apache.hadoop.hive.ql.metadata.Table hiveTable)
public CubeFactTable(String cubeName,
String factName,
List<org.apache.hadoop.hive.metastore.api.FieldSchema> columns,
Map<String,Set<UpdatePeriod>> storageUpdatePeriods)
public CubeFactTable(String cubeName,
String factName,
List<org.apache.hadoop.hive.metastore.api.FieldSchema> columns,
Map<String,Set<UpdatePeriod>> storageUpdatePeriods,
double weight)
public CubeFactTable(String cubeName,
String factName,
List<org.apache.hadoop.hive.metastore.api.FieldSchema> columns,
Map<String,Set<UpdatePeriod>> storageUpdatePeriods,
double weight,
Map<String,String> properties)
| Method Detail |
|---|
public Map<String,Set<UpdatePeriod>> getUpdatePeriods()
public int hashCode()
hashCode in class AbstractCubeTablepublic boolean equals(Object obj)
equals in class AbstractCubeTablepublic CubeTableType getTableType()
getTableType in class AbstractCubeTable
public List<String> getPartitions(Date fromDate,
Date toDate,
UpdatePeriod interval)
fromDate - toDate - interval -
public static UpdatePeriod maxIntervalInRange(Date from,
Date to,
Set<UpdatePeriod> updatePeriods)
from - to - updatePeriods -
public Set<String> getStorages()
getStorages in class AbstractCubeTablepublic String getCubeName()
public List<String> getValidColumns()
public void addUpdatePeriod(String storage,
UpdatePeriod period)
storage - period -
public void removeUpdatePeriod(String storage,
UpdatePeriod period)
storage - period -
public void alterStorage(String storage,
Set<UpdatePeriod> updatePeriods)
throws org.apache.hadoop.hive.ql.metadata.HiveException
storage - updatePeriods -
org.apache.hadoop.hive.ql.metadata.HiveException
public void alterColumn(org.apache.hadoop.hive.metastore.api.FieldSchema column)
throws org.apache.hadoop.hive.ql.metadata.HiveException
AbstractCubeTable
org.apache.hadoop.hive.ql.metadata.HiveException
public void addColumns(Collection<org.apache.hadoop.hive.metastore.api.FieldSchema> columns)
throws org.apache.hadoop.hive.ql.metadata.HiveException
AbstractCubeTable
org.apache.hadoop.hive.ql.metadata.HiveExceptionpublic void alterCubeName(String cubeName)
cubeName - public boolean isAggregated()
public void setAggregated(boolean isAggregated)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||