public final class CubeDimensionTable extends AbstractCubeTable
| Constructor and Description |
|---|
CubeDimensionTable(String dimName,
String dimTblName,
List<org.apache.hadoop.hive.metastore.api.FieldSchema> columns,
double weight,
Map<String,UpdatePeriod> snapshotDumpPeriods) |
CubeDimensionTable(String dimName,
String dimTblName,
List<org.apache.hadoop.hive.metastore.api.FieldSchema> columns,
double weight,
Map<String,UpdatePeriod> snapshotDumpPeriods,
Map<String,String> properties) |
CubeDimensionTable(String dimName,
String dimTblName,
List<org.apache.hadoop.hive.metastore.api.FieldSchema> columns,
double weight,
Set<String> storages) |
CubeDimensionTable(String dimName,
String dimTblName,
List<org.apache.hadoop.hive.metastore.api.FieldSchema> columns,
double weight,
Set<String> storages,
Map<String,String> properties) |
CubeDimensionTable(org.apache.hadoop.hive.ql.metadata.Table tbl) |
| Modifier and Type | Method and Description |
|---|---|
void |
addColumns(Collection<org.apache.hadoop.hive.metastore.api.FieldSchema> columns)
Adds or alters the columns passed
|
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 |
alterSnapshotDumpPeriod(String storage,
UpdatePeriod period)
Alter snapshot dump period of a storage
|
void |
alterUberDim(String newDimName)
Alter the dimension name that the table belongs to
|
boolean |
equals(Object obj) |
String |
getDimName() |
Set<String> |
getPartCols() |
Map<String,UpdatePeriod> |
getSnapshotDumpPeriods() |
Set<String> |
getStorages() |
CubeTableType |
getTableType() |
int |
hashCode() |
boolean |
hasStorageSnapshots(String storage) |
addProperties, alterWeight, getAllFieldNames, getColumns, getDateFromProperty, getName, getProperties, getWeight, now, removeProperty, toString, weightpublic CubeDimensionTable(String dimName, String dimTblName, List<org.apache.hadoop.hive.metastore.api.FieldSchema> columns, double weight, Map<String,UpdatePeriod> snapshotDumpPeriods)
public CubeDimensionTable(String dimName, String dimTblName, List<org.apache.hadoop.hive.metastore.api.FieldSchema> columns, double weight, Set<String> storages)
public CubeDimensionTable(String dimName, String dimTblName, List<org.apache.hadoop.hive.metastore.api.FieldSchema> columns, double weight, Set<String> storages, Map<String,String> properties)
public CubeDimensionTable(String dimName, String dimTblName, List<org.apache.hadoop.hive.metastore.api.FieldSchema> columns, double weight, Map<String,UpdatePeriod> snapshotDumpPeriods, Map<String,String> properties)
public CubeDimensionTable(org.apache.hadoop.hive.ql.metadata.Table tbl)
public CubeTableType getTableType()
getTableType in class AbstractCubeTablepublic Map<String,UpdatePeriod> getSnapshotDumpPeriods()
public String getDimName()
public int hashCode()
hashCode in class AbstractCubeTablepublic boolean equals(Object obj)
equals in class AbstractCubeTablepublic Set<String> getStorages()
getStorages in class AbstractCubeTablepublic boolean hasStorageSnapshots(String storage)
public void alterUberDim(String newDimName)
newDimName - new dimension name.public void alterSnapshotDumpPeriod(@NonNull
String storage,
UpdatePeriod period)
storage - Storage nameperiod - The new valuepublic void alterColumn(org.apache.hadoop.hive.metastore.api.FieldSchema column)
AbstractCubeTablecolumn - The column spec as FieldSchema - name, type and a commentpublic void addColumns(Collection<org.apache.hadoop.hive.metastore.api.FieldSchema> columns)
AbstractCubeTablecolumns - The collection of columnsCopyright © 2014–2016 Apache Software Foundation. All rights reserved.