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
  extended by org.apache.lens.cube.metadata.AbstractCubeTable
      extended by org.apache.lens.cube.metadata.CubeDimensionTable
All Implemented Interfaces:
Named

public final class CubeDimensionTable
extends AbstractCubeTable


Field Summary
 
Fields inherited from class org.apache.lens.cube.metadata.AbstractCubeTable
LOG
 
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)
           
 
Method Summary
 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()
           
 Map<String,UpdatePeriod> getSnapshotDumpPeriods()
           
 Set<String> getStorages()
           
 CubeTableType getTableType()
           
 boolean hasStorageSnapshots(String storage)
           
 
Methods inherited from class org.apache.lens.cube.metadata.AbstractCubeTable
addProperties, alterWeight, getAllFieldNames, getColumns, getName, getProperties, getWeight, hashCode, removeProperty, toString, weight
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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 name
period - 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.