public class ExprColumn extends CubeColumn
Modifier and Type | Class and Description |
---|---|
static class |
ExprColumn.ExprSpec |
Modifier and Type | Field and Description |
---|---|
static char |
EXPRESSION_DELIMITER |
static char |
EXPRESSION_SPEC_DELIMITER |
Constructor and Description |
---|
ExprColumn(org.apache.hadoop.hive.metastore.api.FieldSchema column,
String displayString,
ExprColumn.ExprSpec... expressions) |
ExprColumn(org.apache.hadoop.hive.metastore.api.FieldSchema column,
String displayString,
String expression) |
ExprColumn(String name,
Map<String,String> props) |
Modifier and Type | Method and Description |
---|---|
void |
addExpression(ExprColumn.ExprSpec expression)
Add an expression to existing set of expressions for this column
|
void |
addProperties(Map<String,String> props) |
boolean |
equals(Object obj) |
org.apache.hadoop.hive.ql.parse.ASTNode |
getAst()
Get the AST corresponding to the expression
|
String |
getExpr()
Returns the first expression.
|
List<org.apache.hadoop.hive.ql.parse.ASTNode> |
getExpressionASTList() |
Collection<String> |
getExpressions()
Get immutable view of this column's expression strings
|
Collection<ExprColumn.ExprSpec> |
getExpressionSpecs()
Get immutable view of this column's expression full spec
|
String |
getType() |
int |
hashCode() |
boolean |
removeExpression(String expression)
Remove an expression from the set of expressions of this column
|
String |
toString() |
getCost, getDescription, getDisplayString, getEndTime, getEndTimeMillisSinceEpoch, getName, getStartTime, getStartTimeMillisSinceEpoch, isColumnAvailableFrom, isColumnAvailableInTimeRange, isColumnAvailableTill
public static final char EXPRESSION_DELIMITER
public static final char EXPRESSION_SPEC_DELIMITER
public ExprColumn(org.apache.hadoop.hive.metastore.api.FieldSchema column, String displayString, String expression) throws LensException
LensException
public ExprColumn(org.apache.hadoop.hive.metastore.api.FieldSchema column, String displayString, ExprColumn.ExprSpec... expressions) throws LensException
LensException
public String getExpr()
public String getType()
public void addProperties(Map<String,String> props)
addProperties
in class CubeColumn
public int hashCode()
hashCode
in class CubeColumn
public boolean equals(Object obj)
equals
in class CubeColumn
public String toString()
toString
in class CubeColumn
public org.apache.hadoop.hive.ql.parse.ASTNode getAst() throws LensException
LensException
public List<org.apache.hadoop.hive.ql.parse.ASTNode> getExpressionASTList() throws LensException
LensException
public Collection<String> getExpressions()
public Collection<ExprColumn.ExprSpec> getExpressionSpecs()
public void addExpression(ExprColumn.ExprSpec expression) throws LensException
expression
- LensException
public boolean removeExpression(String expression)
expression
- Copyright © 2014–2016 Apache Software Foundation. All rights reserved.