org.apache.lens.cube.metadata
Class Dimension
java.lang.Object
org.apache.lens.cube.metadata.AbstractCubeTable
org.apache.lens.cube.metadata.AbstractBaseTable
org.apache.lens.cube.metadata.Dimension
- All Implemented Interfaces:
- Named
public class Dimension
- extends AbstractBaseTable
Constructor Summary |
Dimension(String name,
Set<CubeDimAttribute> attributes)
|
Dimension(String name,
Set<CubeDimAttribute> attributes,
Map<String,String> properties,
double weight)
|
Dimension(String name,
Set<CubeDimAttribute> attributes,
Set<ExprColumn> exprs,
Map<String,String> dimProps,
long weight)
|
Dimension(String name,
Set<CubeDimAttribute> attributes,
Set<ExprColumn> expressions,
Set<JoinChain> joinChains,
Map<String,String> properties,
double weight)
|
Dimension(org.apache.hadoop.hive.ql.metadata.Table tbl)
|
Methods inherited from class org.apache.lens.cube.metadata.AbstractBaseTable |
alterExpression, alterJoinChain, getChainByName, getExpressionByName, getExpressionNames, getExpressions, getJoinChainNames, getJoinChains, removeExpression, removeJoinChain, setJoinChainProperties |
Dimension
public Dimension(String name,
Set<CubeDimAttribute> attributes)
Dimension
public Dimension(String name,
Set<CubeDimAttribute> attributes,
Map<String,String> properties,
double weight)
Dimension
public Dimension(String name,
Set<CubeDimAttribute> attributes,
Set<ExprColumn> expressions,
Set<JoinChain> joinChains,
Map<String,String> properties,
double weight)
Dimension
public Dimension(org.apache.hadoop.hive.ql.metadata.Table tbl)
Dimension
public Dimension(String name,
Set<CubeDimAttribute> attributes,
Set<ExprColumn> exprs,
Map<String,String> dimProps,
long weight)
getAttributes
public Set<CubeDimAttribute> getAttributes()
getTableType
public CubeTableType getTableType()
- Specified by:
getTableType
in class AbstractCubeTable
getStorages
public Set<String> getStorages()
- Overrides:
getStorages
in class AbstractBaseTable
addProperties
public void addProperties()
- Overrides:
addProperties
in class AbstractBaseTable
getAttributes
public static Set<CubeDimAttribute> getAttributes(String name,
Map<String,String> props)
hashCode
public int hashCode()
- Overrides:
hashCode
in class AbstractBaseTable
equals
public boolean equals(Object obj)
- Overrides:
equals
in class AbstractBaseTable
getAttributeByName
public CubeDimAttribute getAttributeByName(String attr)
getColumnByName
public CubeColumn getColumnByName(String column)
- Overrides:
getColumnByName
in class AbstractBaseTable
alterAttribute
public void alterAttribute(CubeDimAttribute attribute)
throws org.apache.hadoop.hive.ql.metadata.HiveException
- Alters the attribute if already existing or just adds if it is new attribute
- Parameters:
attribute
-
- Throws:
org.apache.hadoop.hive.ql.metadata.HiveException
removeAttribute
public void removeAttribute(String attrName)
- Remove the dimension with name specified
- Parameters:
attrName
-
getTimedDimension
public String getTimedDimension()
- Returns:
- the timedDimension
getAttributeNames
public Set<String> getAttributeNames()
getAllFieldNames
public Set<String> getAllFieldNames()
- Overrides:
getAllFieldNames
in class AbstractBaseTable
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.