|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lens.cube.metadata.AbstractCubeTable org.apache.lens.cube.metadata.DerivedCube
public class DerivedCube
Field Summary |
---|
Fields inherited from class org.apache.lens.cube.metadata.AbstractCubeTable |
---|
LOG |
Constructor Summary | |
---|---|
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)
|
Method Summary | |
---|---|
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 |
Methods inherited from class org.apache.lens.cube.metadata.AbstractCubeTable |
---|
addProperties, alterWeight, getColumns, getName, getProperties, getWeight, removeProperty, toString, weight |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.lens.cube.metadata.Named |
---|
getName |
Constructor Detail |
---|
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)
Method Detail |
---|
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 static Set<String> getMeasures(String name, Map<String,String> props)
public Set<String> getTimedDimensions()
CubeInterface
getTimedDimensions
in interface CubeInterface
public static Set<String> getDimensions(String name, Map<String,String> props)
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 name
CubeDimAttribute
objectpublic CubeMeasure getMeasureByName(String measure)
CubeInterface
getMeasureByName
in interface CubeInterface
measure
- Measure name
CubeMeasure
objectpublic CubeColumn getColumnByName(String column)
CubeInterface
getColumnByName
in interface CubeInterface
column
- Column name
CubeColumn
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 name
ExprColumn
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 name
JoinChain
objectpublic Set<String> getJoinChainNames()
CubeInterface
getJoinChainNames
in interface CubeInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |