public abstract class ExprNodeEvaluator<T extends ExprNodeDesc> extends Object
Modifier and Type | Field and Description |
---|---|
protected T |
expr |
protected ObjectInspector |
outputOI |
Constructor and Description |
---|
ExprNodeEvaluator(T expr) |
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
|
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 |
isDeterministic()
Return whether this node (and all children nodes) are deterministic.
|
boolean |
isStateful()
Return whether this node (or any children nodes) are stateful.
|
String |
toString() |
protected final T extends ExprNodeDesc expr
protected ObjectInspector outputOI
public ExprNodeEvaluator(T expr)
public T getExpr()
public abstract ObjectInspector initialize(ObjectInspector rowInspector) throws HiveException
HiveException
public ObjectInspector getOutputOI()
public Object evaluate(Object row) throws HiveException
HiveException
protected Object evaluate(Object row, int version) throws HiveException
HiveException
protected abstract Object _evaluate(Object row, int version) throws HiveException
HiveException
public boolean isDeterministic()
public boolean isStateful()
public ExprNodeEvaluator[] getChildren()
Copyright © 2017 The Apache Software Foundation. All rights reserved.