|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 CubeInterfaceCubeMeasurepublic Set<CubeDimAttribute> getDimAttributes()
CubeInterface
getDimAttributes in interface CubeInterfaceCubeDimAttributepublic CubeTableType getTableType()
getTableType in class AbstractCubeTablepublic Set<String> getStorages()
getStorages in class AbstractCubeTablepublic 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 AbstractCubeTablepublic boolean equals(Object obj)
equals in class AbstractCubeTablepublic CubeDimAttribute getDimAttributeByName(String dimension)
CubeInterface
getDimAttributeByName in interface CubeInterfacedimension - dimension attribute name
CubeDimAttribute objectpublic CubeMeasure getMeasureByName(String measure)
CubeInterface
getMeasureByName in interface CubeInterfacemeasure - Measure name
CubeMeasure objectpublic CubeColumn getColumnByName(String column)
CubeInterface
getColumnByName in interface CubeInterfacecolumn - Column name
CubeColumn object
public 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.HiveExceptionpublic void removeDimension(String dimName)
dimName - public void removeMeasure(String msrName)
msrName - public boolean isDerivedCube()
CubeInterface
isDerivedCube in interface CubeInterfacepublic Set<String> getMeasureNames()
CubeInterface
getMeasureNames in interface CubeInterfacepublic Set<String> getDimAttributeNames()
CubeInterface
getDimAttributeNames in interface CubeInterfacepublic boolean allFieldsQueriable()
CubeInterface
allFieldsQueriable in interface CubeInterfacepublic Set<ExprColumn> getExpressions()
CubeInterface
getExpressions in interface CubeInterfaceExprColumnpublic ExprColumn getExpressionByName(String exprName)
CubeInterface
getExpressionByName in interface CubeInterfaceexprName - Expression name
ExprColumn objectpublic Set<String> getAllFieldNames()
CubeInterface
getAllFieldNames in interface CubeInterfacegetAllFieldNames in class AbstractCubeTablepublic Set<String> getExpressionNames()
CubeInterface
getExpressionNames in interface CubeInterfacepublic Set<JoinChain> getJoinChains()
CubeInterface
getJoinChains in interface CubeInterfaceJoinChainpublic JoinChain getChainByName(String chainName)
CubeInterface
getChainByName in interface CubeInterfacechainName - 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 | |||||||||