public final class CubeDimensionTable extends AbstractCubeTable
LOG| 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, getName, getProperties, getWeight, 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 - public void alterSnapshotDumpPeriod(String storage, UpdatePeriod period) throws org.apache.hadoop.hive.ql.metadata.HiveException
storage - Storage nameperiod - The new valueorg.apache.hadoop.hive.ql.metadata.HiveExceptionpublic void alterColumn(org.apache.hadoop.hive.metastore.api.FieldSchema column)
                 throws org.apache.hadoop.hive.ql.metadata.HiveException
AbstractCubeTableorg.apache.hadoop.hive.ql.metadata.HiveExceptionpublic void addColumns(Collection<org.apache.hadoop.hive.metastore.api.FieldSchema> columns) throws org.apache.hadoop.hive.ql.metadata.HiveException
AbstractCubeTableorg.apache.hadoop.hive.ql.metadata.HiveExceptionCopyright © 2014–2015 Apache Software Foundation. All rights reserved.