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, setJoinChainPropertiesaddProperties, alterWeight, getColumns, getName, getProperties, getWeight, now, removeProperty, toString, weightpublic 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 AbstractCubeTablepublic Set<String> getStorages()
getStorages in class AbstractBaseTablepublic void addProperties()
addProperties in class AbstractBaseTablepublic static Set<CubeDimAttribute> getAttributes(String name, Map<String,String> props)
public int hashCode()
hashCode in class AbstractBaseTablepublic boolean equals(Object obj)
equals in class AbstractBaseTablepublic CubeDimAttribute getAttributeByName(String attr)
public CubeColumn getColumnByName(String column)
getColumnByName in class AbstractBaseTablepublic void alterAttribute(@NonNull
CubeDimAttribute attribute)
attribute - public void removeAttribute(String attrName)
attrName - public String getTimedDimension()
public Set<String> getAllFieldNames()
getAllFieldNames in class AbstractBaseTableCopyright © 2014–2018 Apache Software Foundation. All rights reserved.