|
||||||||||
| 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.AbstractBaseTable
org.apache.lens.cube.metadata.Cube
public class Cube
| Field Summary |
|---|
| Fields inherited from class org.apache.lens.cube.metadata.AbstractCubeTable |
|---|
LOG |
| Constructor Summary | |
|---|---|
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)
|
|
| Method Summary | |
|---|---|
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)
|
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 |
| Methods inherited from class org.apache.lens.cube.metadata.AbstractBaseTable |
|---|
alterExpression, alterJoinChain, getChainByName, getExpressionByName, getExpressionNames, getExpressions, getJoinChainNames, getJoinChains, getStorages, removeExpression, setJoinChainProperties |
| Methods inherited from class org.apache.lens.cube.metadata.AbstractCubeTable |
|---|
addProperties, alterWeight, getColumns, getName, getProperties, getWeight, hashCode, 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.CubeInterface |
|---|
getChainByName, getExpressionByName, getExpressionNames, getExpressions, getJoinChainNames, getJoinChains |
| Methods inherited from interface org.apache.lens.cube.metadata.Named |
|---|
getName |
| Constructor Detail |
|---|
public 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)
| Method Detail |
|---|
public Set<CubeMeasure> getMeasures()
CubeInterface
getMeasures in interface CubeInterfaceCubeMeasurepublic Set<CubeDimAttribute> getDimAttributes()
CubeInterface
getDimAttributes in interface CubeInterfaceCubeDimAttributepublic Set<String> getTimedDimensions()
CubeInterface
getTimedDimensions in interface CubeInterfacepublic CubeTableType getTableType()
getTableType in class AbstractCubeTablepublic void addProperties()
addProperties in class AbstractBaseTable
public static Set<CubeMeasure> getMeasures(String name,
Map<String,String> props)
public static Set<CubeDimAttribute> getDimensions(String name,
Map<String,String> props)
public boolean equals(Object obj)
equals in class AbstractBaseTablepublic 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 CubeInterfacegetColumnByName in class AbstractBaseTablecolumn - Column name
CubeColumn object
public 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.HiveException
public void removeTimedDimension(String timedDimension)
throws org.apache.hadoop.hive.ql.metadata.HiveException
timedDimension -
org.apache.hadoop.hive.ql.metadata.HiveExceptionpublic 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<String> getAllFieldNames()
CubeInterface
getAllFieldNames in interface CubeInterfacegetAllFieldNames in class AbstractBaseTablepublic String getPartitionColumnOfTimeDim(String timeDimName)
public String getTimeDimOfPartitionColumn(String partCol)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||