public class DerivedCube extends AbstractCubeTable implements CubeInterface
LOG| Constructor and Description | 
|---|
| DerivedCube(String name,
           Set<String> measures,
           Set<String> dimensions,
           Cube parent) | 
| DerivedCube(String name,
           Set<String> measures,
           Set<String> dimensions,
           Map<String,String> properties,
           double weight,
           Cube parent) | 
| DerivedCube(org.apache.hadoop.hive.ql.metadata.Table tbl,
           Cube parent) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addDimension(String dimension)Add a new dimension | 
| void | addMeasure(String measure)Add a new measure | 
| void | addProperties() | 
| boolean | allFieldsQueriable()Whether all the fields of cube can be queried. | 
| boolean | equals(Object obj) | 
| Set<String> | getAllFieldNames()Get all field names reachable from cube | 
| JoinChain | getChainByName(String chainName)Get joinchain by given by name | 
| 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<String> | getDimensions(String name,
             Map<String,String> props) | 
| ExprColumn | getExpressionByName(String exprName)Get expression by given by name | 
| Set<String> | getExpressionNames()Get all expression names | 
| Set<ExprColumn> | getExpressions()Get all expressions defined on the cube | 
| Set<String> | getJoinChainNames()Get all join chain names | 
| Set<JoinChain> | getJoinChains()Get all joinchains defined on the cube | 
| 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<String> | getMeasures(String name,
           Map<String,String> props) | 
| Cube | getParent() | 
| Set<String> | getStorages() | 
| CubeTableType | getTableType() | 
| Set<String> | getTimedDimensions()Get all timed dimensions of cube | 
| int | hashCode() | 
| boolean | isDerivedCube()Is the cube a derived cube or base cube | 
| void | removeDimension(String dimName)Remove the dimension with name specified | 
| void | removeMeasure(String msrName)Remove the measure with name specified | 
addProperties, alterWeight, getColumns, getName, getProperties, getWeight, removeProperty, toString, weightpublic DerivedCube(String name, Set<String> measures, Set<String> dimensions, Cube parent)
public DerivedCube(String name, Set<String> measures, Set<String> dimensions, Map<String,String> properties, double weight, Cube parent)
public DerivedCube(org.apache.hadoop.hive.ql.metadata.Table tbl,
           Cube parent)
public Set<CubeMeasure> getMeasures()
CubeInterfacegetMeasures in interface CubeInterfaceCubeMeasurepublic Set<CubeDimAttribute> getDimAttributes()
CubeInterfacegetDimAttributes in interface CubeInterfaceCubeDimAttributepublic CubeTableType getTableType()
getTableType in class AbstractCubeTablepublic Set<String> getStorages()
getStorages in class AbstractCubeTablepublic void addProperties()
public Set<String> getTimedDimensions()
CubeInterfacegetTimedDimensions in interface CubeInterfacepublic Cube getParent()
public int hashCode()
hashCode in class AbstractCubeTablepublic boolean equals(Object obj)
equals in class AbstractCubeTablepublic 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 CubeInterfacecolumn - Column nameCubeColumn objectpublic void addMeasure(String measure) throws org.apache.hadoop.hive.ql.metadata.HiveException
measure - org.apache.hadoop.hive.ql.metadata.HiveExceptionpublic void addDimension(String 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 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<ExprColumn> getExpressions()
CubeInterfacegetExpressions in interface CubeInterfaceExprColumnpublic ExprColumn getExpressionByName(String exprName)
CubeInterfacegetExpressionByName in interface CubeInterfaceexprName - Expression nameExprColumn objectpublic Set<String> getAllFieldNames()
CubeInterfacegetAllFieldNames in interface CubeInterfacegetAllFieldNames in class AbstractCubeTablepublic Set<String> getExpressionNames()
CubeInterfacegetExpressionNames in interface CubeInterfacepublic Set<JoinChain> getJoinChains()
CubeInterfacegetJoinChains in interface CubeInterfaceJoinChainpublic JoinChain getChainByName(String chainName)
CubeInterfacegetChainByName in interface CubeInterfacechainName - Chain nameJoinChain objectpublic Set<String> getJoinChainNames()
CubeInterfacegetJoinChainNames in interface CubeInterfaceCopyright © 2014–2015 Apache Software Foundation. All rights reserved.