public abstract class ExprNodeEvaluator<T extends ExprNodeDesc> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hadoop.conf.Configuration |
conf |
protected T |
expr |
protected ObjectInspector |
outputOI |
| Constructor and Description |
|---|
ExprNodeEvaluator(T expr,
org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Object |
_evaluate(Object row,
int version)
Evaluate value
|
Object |
evaluate(Object row) |
protected Object |
evaluate(Object row,
int version)
Evaluate the expression given the row.
|
ExprNodeEvaluator[] |
getChildren()
Return child evaluators if exist
|
org.apache.hadoop.conf.Configuration |
getConf() |
T |
getExpr()
Return child evaluators if exist
|
ObjectInspector |
getOutputOI()
Return initialized ObjectInspector.
|
abstract ObjectInspector |
initialize(ObjectInspector rowInspector)
Initialize should be called once and only once.
|
boolean |
isConsistentWithinQuery()
Returns whether the expression, for a single query, returns the same result given
the same arguments.
|
boolean |
isDeterministic()
Return whether this node (and all children nodes) are deterministic.
|
boolean |
isRuntimeConstant()
Return whether this node (or any children nodes) are runtime constants.
|
boolean |
isStateful()
Return whether this node (or any children nodes) are stateful.
|
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
String |
toString() |
protected final T extends ExprNodeDesc expr
protected ObjectInspector outputOI
protected org.apache.hadoop.conf.Configuration conf
public ExprNodeEvaluator(T expr, org.apache.hadoop.conf.Configuration conf)
public T getExpr()
public abstract ObjectInspector initialize(ObjectInspector rowInspector) throws HiveException
HiveExceptionpublic ObjectInspector getOutputOI()
public Object evaluate(Object row) throws HiveException
HiveExceptionprotected Object evaluate(Object row, int version) throws HiveException
HiveExceptionprotected abstract Object _evaluate(Object row, int version) throws HiveException
HiveExceptionpublic boolean isDeterministic()
public boolean isStateful()
public boolean isRuntimeConstant()
public boolean isConsistentWithinQuery()
public ExprNodeEvaluator[] getChildren()
public org.apache.hadoop.conf.Configuration getConf()
public void setConf(org.apache.hadoop.conf.Configuration conf)
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.