This project has retired. For details please refer to its
Attic page.
CubeDimensionTable (Lens 2.0.1-beta-incubating API)
org.apache.lens.cube.metadata
Class CubeDimensionTable
java.lang.Object
org.apache.lens.cube.metadata.AbstractCubeTable
org.apache.lens.cube.metadata.CubeDimensionTable
- All Implemented Interfaces:
- Named
public final class CubeDimensionTable
- extends AbstractCubeTable
Constructor Summary |
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)
|
Methods inherited from class org.apache.lens.cube.metadata.AbstractCubeTable |
addProperties, alterWeight, getAllFieldNames, getColumns, getName, getProperties, getWeight, hashCode, removeProperty, toString, weight |
CubeDimensionTable
public CubeDimensionTable(String dimName,
String dimTblName,
List<org.apache.hadoop.hive.metastore.api.FieldSchema> columns,
double weight,
Map<String,UpdatePeriod> snapshotDumpPeriods)
CubeDimensionTable
public CubeDimensionTable(String dimName,
String dimTblName,
List<org.apache.hadoop.hive.metastore.api.FieldSchema> columns,
double weight,
Set<String> storages)
CubeDimensionTable
public CubeDimensionTable(String dimName,
String dimTblName,
List<org.apache.hadoop.hive.metastore.api.FieldSchema> columns,
double weight,
Set<String> storages,
Map<String,String> properties)
CubeDimensionTable
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)
CubeDimensionTable
public CubeDimensionTable(org.apache.hadoop.hive.ql.metadata.Table tbl)
getTableType
public CubeTableType getTableType()
- Specified by:
getTableType
in class AbstractCubeTable
getSnapshotDumpPeriods
public Map<String,UpdatePeriod> getSnapshotDumpPeriods()
getDimName
public String getDimName()
equals
public boolean equals(Object obj)
- Overrides:
equals
in class AbstractCubeTable
getStorages
public Set<String> getStorages()
- Specified by:
getStorages
in class AbstractCubeTable
hasStorageSnapshots
public boolean hasStorageSnapshots(String storage)
alterUberDim
public void alterUberDim(String newDimName)
- Alter the dimension name that the table belongs to
- Parameters:
newDimName
-
alterSnapshotDumpPeriod
public void alterSnapshotDumpPeriod(String storage,
UpdatePeriod period)
throws org.apache.hadoop.hive.ql.metadata.HiveException
- Alter snapshot dump period of a storage
- Parameters:
storage
- Storage nameperiod
- The new value
- Throws:
org.apache.hadoop.hive.ql.metadata.HiveException
alterColumn
public void alterColumn(org.apache.hadoop.hive.metastore.api.FieldSchema column)
throws org.apache.hadoop.hive.ql.metadata.HiveException
- Description copied from class:
AbstractCubeTable
- Alters the column if already existing or just adds it if it is new column
- Throws:
org.apache.hadoop.hive.ql.metadata.HiveException
addColumns
public void addColumns(Collection<org.apache.hadoop.hive.metastore.api.FieldSchema> columns)
throws org.apache.hadoop.hive.ql.metadata.HiveException
- Description copied from class:
AbstractCubeTable
- Adds or alters the columns passed
- Throws:
org.apache.hadoop.hive.ql.metadata.HiveException
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.