org.apache.lens.cube.metadata
Class ExprColumn
java.lang.Object
org.apache.lens.cube.metadata.CubeColumn
org.apache.lens.cube.metadata.ExprColumn
- All Implemented Interfaces:
- Named
public class ExprColumn
- extends CubeColumn
EXPRESSION_DELIMITER
public static final char EXPRESSION_DELIMITER
- See Also:
- Constant Field Values
ExprColumn
public ExprColumn(org.apache.hadoop.hive.metastore.api.FieldSchema column,
String displayString,
String... expressions)
throws org.apache.hadoop.hive.ql.parse.ParseException
- Throws:
org.apache.hadoop.hive.ql.parse.ParseException
ExprColumn
public ExprColumn(String name,
Map<String,String> props)
getExpr
public String getExpr()
- Returns:
- the expression
getType
public String getType()
addProperties
public void addProperties(Map<String,String> props)
- Overrides:
addProperties
in class CubeColumn
hashCode
public int hashCode()
- Overrides:
hashCode
in class CubeColumn
equals
public boolean equals(Object obj)
- Overrides:
equals
in class CubeColumn
toString
public String toString()
- Overrides:
toString
in class CubeColumn
getAst
public org.apache.hadoop.hive.ql.parse.ASTNode getAst()
throws org.apache.hadoop.hive.ql.parse.ParseException
- Get the AST corresponding to the expression
- Returns:
- the ast
- Throws:
org.apache.hadoop.hive.ql.parse.ParseException
getExpressionASTList
public List<org.apache.hadoop.hive.ql.parse.ASTNode> getExpressionASTList()
getExpressions
public Collection<String> getExpressions()
- Get immutable view of this column's expressions
- Returns:
addExpression
public void addExpression(String expression)
throws org.apache.hadoop.hive.ql.parse.ParseException
- Add an expression to existing set of expressions for this column
- Parameters:
expression
-
- Throws:
org.apache.hadoop.hive.ql.parse.ParseException
removeExpression
public boolean removeExpression(String expression)
- Remove an expression from the set of expressions of this column
- Parameters:
expression
-
- Returns:
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.