org.apache.hadoop.hive.ql.exec
Class ExprNodeEvaluator
java.lang.Object
org.apache.hadoop.hive.ql.exec.ExprNodeEvaluator
- Direct Known Subclasses:
- ExprNodeColumnEvaluator, ExprNodeConstantEvaluator, ExprNodeFieldEvaluator, ExprNodeFuncEvaluator, ExprNodeIndexEvaluator, ExprNodeNullEvaluator
public abstract class ExprNodeEvaluator
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExprNodeEvaluator
public ExprNodeEvaluator()
evaluate
public abstract void evaluate(Object row,
ObjectInspector rowInspector,
InspectableObject result)
throws HiveException
- Evaluate the expression given the row and rowInspector.
- Parameters:
result
- result.o and result.oi will be set inside the method.
- Throws:
HiveException
evaluateInspector
public abstract ObjectInspector evaluateInspector(ObjectInspector rowInspector)
throws HiveException
- Metadata evaluation. Return the inspector for the expression, given the rowInspector.
This method must return the same value as result.oi in evaluate(...) call with the same rowInspector.
- Throws:
HiveException
Copyright © 2009 The Apache Software Foundation