public class Cube extends AbstractBaseTable implements CubeInterface
LOG| Constructor and Description | 
|---|
| Cube(String name,
    Set<CubeMeasure> measures,
    Set<CubeDimAttribute> dimensions) | 
| Cube(String name,
    Set<CubeMeasure> measures,
    Set<CubeDimAttribute> dimensions,
    Map<String,String> properties) | 
| Cube(String name,
    Set<CubeMeasure> measures,
    Set<CubeDimAttribute> dimensions,
    Map<String,String> properties,
    double weight) | 
| Cube(String name,
    Set<CubeMeasure> measures,
    Set<CubeDimAttribute> dimensions,
    Set<ExprColumn> expressions,
    Set<JoinChain> joinChains,
    Map<String,String> properties,
    double weight) | 
| Cube(org.apache.hadoop.hive.ql.metadata.Table tbl) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addProperties() | 
| void | addTimedDimension(String timedDimension)Adds the timed dimension | 
| boolean | allFieldsQueriable()Whether all the fields of cube can be queried. | 
| void | alterDimension(CubeDimAttribute dimension)Alters the dimension if already existing or just adds if it is new dimension | 
| void | alterMeasure(CubeMeasure measure)Alters the measure if already existing or just adds if it is new measure. | 
| boolean | equals(Object obj) | 
| Set<String> | getAllFieldNames()Get all field names reachable from cube | 
| CubeColumn | getColumnByName(String column)Get cube column given by column name. | 
| CubeDimAttribute | getDimAttributeByName(String dimension)Get dimension attribute given by name | 
| Set<String> | getDimAttributeNames()Get all dimension attribute names | 
| Set<CubeDimAttribute> | getDimAttributes()Get all dimension attributes of the cube | 
| static Set<CubeDimAttribute> | getDimensions(String name,
             Map<String,String> props) | 
| CubeMeasure | getMeasureByName(String measure)Get measure by given by name | 
| Set<String> | getMeasureNames()Get all measure names | 
| Set<CubeMeasure> | getMeasures()Get all measures of the cube | 
| static Set<CubeMeasure> | getMeasures(String name,
           Map<String,String> props) | 
| String | getPartitionColumnOfTimeDim(String timeDimName) | 
| CubeTableType | getTableType() | 
| Set<String> | getTimedDimensions()Get all timed dimensions of cube | 
| String | getTimeDimOfPartitionColumn(String partCol) | 
| int | hashCode() | 
| boolean | isDerivedCube()Is the cube a derived cube or base cube | 
| void | removeDimension(String dimName)Remove the dimension with name specified | 
| boolean | removeJoinChain(String chainName)Remove the joinchain with name specified | 
| void | removeMeasure(String msrName)Remove the measure with name specified | 
| void | removeTimedDimension(String timedDimension)Removes the timed dimension | 
alterExpression, alterJoinChain, getChainByName, getExpressionByName, getExpressionNames, getExpressions, getJoinChainNames, getJoinChains, getStorages, removeExpression, setJoinChainPropertiesaddProperties, alterWeight, getColumns, getName, getProperties, getWeight, removeProperty, toString, weightgetChainByName, getExpressionByName, getExpressionNames, getExpressions, getJoinChainNames, getJoinChainspublic Cube(String name, Set<CubeMeasure> measures, Set<CubeDimAttribute> dimensions)
public Cube(String name, Set<CubeMeasure> measures, Set<CubeDimAttribute> dimensions, Map<String,String> properties)
public Cube(String name, Set<CubeMeasure> measures, Set<CubeDimAttribute> dimensions, Map<String,String> properties, double weight)
public Cube(String name, Set<CubeMeasure> measures, Set<CubeDimAttribute> dimensions, Set<ExprColumn> expressions, Set<JoinChain> joinChains, Map<String,String> properties, double weight)
public Cube(org.apache.hadoop.hive.ql.metadata.Table tbl)
public Set<CubeMeasure> getMeasures()
CubeInterfacegetMeasures in interface CubeInterfaceCubeMeasurepublic Set<CubeDimAttribute> getDimAttributes()
CubeInterfacegetDimAttributes in interface CubeInterfaceCubeDimAttributepublic Set<String> getTimedDimensions()
CubeInterfacegetTimedDimensions in interface CubeInterfacepublic CubeTableType getTableType()
getTableType in class AbstractCubeTablepublic void addProperties()
addProperties in class AbstractBaseTablepublic static Set<CubeDimAttribute> getDimensions(String name, Map<String,String> props)
public int hashCode()
hashCode in class AbstractBaseTablepublic boolean equals(Object obj)
equals in class AbstractBaseTablepublic CubeDimAttribute getDimAttributeByName(String dimension)
CubeInterfacegetDimAttributeByName in interface CubeInterfacedimension - dimension attribute nameCubeDimAttribute objectpublic CubeMeasure getMeasureByName(String measure)
CubeInterfacegetMeasureByName in interface CubeInterfacemeasure - Measure nameCubeMeasure objectpublic CubeColumn getColumnByName(String column)
CubeInterfacegetColumnByName in interface CubeInterfacegetColumnByName in class AbstractBaseTablecolumn - Column nameCubeColumn objectpublic void alterMeasure(CubeMeasure measure) throws org.apache.hadoop.hive.ql.metadata.HiveException
measure - org.apache.hadoop.hive.ql.metadata.HiveExceptionpublic boolean removeJoinChain(String chainName)
removeJoinChain in class AbstractBaseTablechainName - public void alterDimension(CubeDimAttribute dimension) throws org.apache.hadoop.hive.ql.metadata.HiveException
dimension - org.apache.hadoop.hive.ql.metadata.HiveExceptionpublic void removeDimension(String dimName)
dimName - public void removeMeasure(String msrName)
msrName - public void addTimedDimension(String timedDimension) throws org.apache.hadoop.hive.ql.metadata.HiveException
timedDimension - org.apache.hadoop.hive.ql.metadata.HiveExceptionpublic void removeTimedDimension(String timedDimension) throws org.apache.hadoop.hive.ql.metadata.HiveException
timedDimension - org.apache.hadoop.hive.ql.metadata.HiveExceptionpublic boolean isDerivedCube()
CubeInterfaceisDerivedCube in interface CubeInterfacepublic Set<String> getMeasureNames()
CubeInterfacegetMeasureNames in interface CubeInterfacepublic Set<String> getDimAttributeNames()
CubeInterfacegetDimAttributeNames in interface CubeInterfacepublic boolean allFieldsQueriable()
CubeInterfaceallFieldsQueriable in interface CubeInterfacepublic Set<String> getAllFieldNames()
CubeInterfacegetAllFieldNames in interface CubeInterfacegetAllFieldNames in class AbstractBaseTableCopyright © 2014–2015 Apache Software Foundation. All rights reserved.