public class DerivedCube extends AbstractCubeTable implements CubeInterface
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, weight
public 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()
CubeInterface
getMeasures
in interface CubeInterface
CubeMeasure
public Set<CubeDimAttribute> getDimAttributes()
CubeInterface
getDimAttributes
in interface CubeInterface
CubeDimAttribute
public CubeTableType getTableType()
getTableType
in class AbstractCubeTable
public Set<String> getStorages()
getStorages
in class AbstractCubeTable
public void addProperties()
public Set<String> getTimedDimensions()
CubeInterface
getTimedDimensions
in interface CubeInterface
public Cube getParent()
public int hashCode()
hashCode
in class AbstractCubeTable
public boolean equals(Object obj)
equals
in class AbstractCubeTable
public CubeDimAttribute getDimAttributeByName(String dimension)
CubeInterface
getDimAttributeByName
in interface CubeInterface
dimension
- dimension attribute nameCubeDimAttribute
objectpublic CubeMeasure getMeasureByName(String measure)
CubeInterface
getMeasureByName
in interface CubeInterface
measure
- Measure nameCubeMeasure
objectpublic CubeColumn getColumnByName(String column)
CubeInterface
getColumnByName
in interface CubeInterface
column
- Column nameCubeColumn
objectpublic void addMeasure(String measure) throws org.apache.hadoop.hive.ql.metadata.HiveException
measure
- org.apache.hadoop.hive.ql.metadata.HiveException
public void addDimension(String dimension) throws org.apache.hadoop.hive.ql.metadata.HiveException
dimension
- org.apache.hadoop.hive.ql.metadata.HiveException
public void removeDimension(String dimName)
dimName
- public void removeMeasure(String msrName)
msrName
- public boolean isDerivedCube()
CubeInterface
isDerivedCube
in interface CubeInterface
public Set<String> getMeasureNames()
CubeInterface
getMeasureNames
in interface CubeInterface
public Set<String> getDimAttributeNames()
CubeInterface
getDimAttributeNames
in interface CubeInterface
public boolean allFieldsQueriable()
CubeInterface
allFieldsQueriable
in interface CubeInterface
public Set<ExprColumn> getExpressions()
CubeInterface
getExpressions
in interface CubeInterface
ExprColumn
public ExprColumn getExpressionByName(String exprName)
CubeInterface
getExpressionByName
in interface CubeInterface
exprName
- Expression nameExprColumn
objectpublic Set<String> getAllFieldNames()
CubeInterface
getAllFieldNames
in interface CubeInterface
getAllFieldNames
in class AbstractCubeTable
public Set<String> getExpressionNames()
CubeInterface
getExpressionNames
in interface CubeInterface
public Set<JoinChain> getJoinChains()
CubeInterface
getJoinChains
in interface CubeInterface
JoinChain
public JoinChain getChainByName(String chainName)
CubeInterface
getChainByName
in interface CubeInterface
chainName
- Chain nameJoinChain
objectpublic Set<String> getJoinChainNames()
CubeInterface
getJoinChainNames
in interface CubeInterface
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.