|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hive.ql.exec.ExprNodeEvaluator<T>
public abstract class ExprNodeEvaluator<T extends ExprNodeDesc>
ExprNodeEvaluator.
| Field Summary | |
|---|---|
protected T |
expr
|
protected ObjectInspector |
outputOI
|
| Constructor Summary | |
|---|---|
ExprNodeEvaluator(T expr)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final T extends ExprNodeDesc expr
protected ObjectInspector outputOI
| Constructor Detail |
|---|
public ExprNodeEvaluator(T expr)
| Method Detail |
|---|
public T getExpr()
public abstract ObjectInspector initialize(ObjectInspector rowInspector)
throws HiveException
HiveExceptionpublic 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
HiveExceptionpublic boolean isDeterministic()
public boolean isStateful()
public ExprNodeEvaluator[] getChildren()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||