public class Dimension extends AbstractBaseTable
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
void |
addProperties() |
void |
alterAttribute(CubeDimAttribute attribute)
Alters the attribute if already existing or just adds if it is new attribute
|
boolean |
equals(Object obj) |
Set<String> |
getAllFieldNames() |
CubeDimAttribute |
getAttributeByName(String attr) |
Set<String> |
getAttributeNames() |
Set<CubeDimAttribute> |
getAttributes() |
static Set<CubeDimAttribute> |
getAttributes(String name,
Map<String,String> props) |
CubeColumn |
getColumnByName(String column) |
Set<String> |
getStorages() |
CubeTableType |
getTableType() |
String |
getTimedDimension() |
int |
hashCode() |
void |
removeAttribute(String attrName)
Remove the dimension with name specified
|
alterExpression, alterJoinChain, getChainByName, getChainMap, getExpressionByName, getExpressionNames, getExpressions, getExprMap, getJoinChainNames, getJoinChains, removeExpression, removeJoinChain, setJoinChainProperties
addProperties, alterWeight, getColumns, getName, getProperties, getWeight, now, removeProperty, toString, weight
public Dimension(String name, Set<CubeDimAttribute> attributes)
public Dimension(String name, Set<CubeDimAttribute> attributes, Map<String,String> properties, double weight)
public Dimension(String name, Set<CubeDimAttribute> attributes, Set<ExprColumn> expressions, Set<JoinChain> joinChains, Map<String,String> properties, double weight)
public Dimension(org.apache.hadoop.hive.ql.metadata.Table tbl)
public Dimension(String name, Set<CubeDimAttribute> attributes, Set<ExprColumn> exprs, Map<String,String> dimProps, long weight)
public Set<CubeDimAttribute> getAttributes()
public CubeTableType getTableType()
getTableType
in class AbstractCubeTable
public Set<String> getStorages()
getStorages
in class AbstractBaseTable
public void addProperties()
addProperties
in class AbstractBaseTable
public static Set<CubeDimAttribute> getAttributes(String name, Map<String,String> props)
public int hashCode()
hashCode
in class AbstractBaseTable
public boolean equals(Object obj)
equals
in class AbstractBaseTable
public CubeDimAttribute getAttributeByName(String attr)
public CubeColumn getColumnByName(String column)
getColumnByName
in class AbstractBaseTable
public void alterAttribute(@NonNull CubeDimAttribute attribute)
attribute
- public void removeAttribute(String attrName)
attrName
- public String getTimedDimension()
public Set<String> getAllFieldNames()
getAllFieldNames
in class AbstractBaseTable
Copyright © 2014–2018 Apache Software Foundation. All rights reserved.