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,
Map<String,String> tags,
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, getTags, isColumnAvailableFrom, isColumnAvailableInTimeRange, isColumnAvailableTillpublic 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
LensExceptionpublic ExprColumn(org.apache.hadoop.hive.metastore.api.FieldSchema column,
String displayString,
ExprColumn.ExprSpec... expressions)
throws LensException
LensExceptionpublic ExprColumn(org.apache.hadoop.hive.metastore.api.FieldSchema column,
String displayString,
Map<String,String> tags,
ExprColumn.ExprSpec... expressions)
throws LensException
LensExceptionpublic String getExpr()
public String getType()
public void addProperties(Map<String,String> props)
addProperties in class CubeColumnpublic int hashCode()
hashCode in class CubeColumnpublic boolean equals(Object obj)
equals in class CubeColumnpublic String toString()
toString in class CubeColumnpublic org.apache.hadoop.hive.ql.parse.ASTNode getAst()
throws LensException
LensExceptionpublic List<org.apache.hadoop.hive.ql.parse.ASTNode> getExpressionASTList() throws LensException
LensExceptionpublic Collection<String> getExpressions()
public Collection<ExprColumn.ExprSpec> getExpressionSpecs()
public void addExpression(ExprColumn.ExprSpec expression) throws LensException
expression - LensExceptionpublic boolean removeExpression(String expression)
expression - Copyright © 2014–2018 Apache Software Foundation. All rights reserved.