org.apache.hadoop.hive.ql.exec
Class ExprNodeEvaluator

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.ExprNodeEvaluator
Direct Known Subclasses:
ExprNodeColumnEvaluator, ExprNodeConstantEvaluator, ExprNodeFieldEvaluator, ExprNodeFuncEvaluator, ExprNodeIndexEvaluator, ExprNodeNullEvaluator

public abstract class ExprNodeEvaluator
extends Object


Constructor Summary
ExprNodeEvaluator()
           
 
Method Summary
abstract  void evaluate(Object row, ObjectInspector rowInspector, InspectableObject result)
          Evaluate the expression given the row and rowInspector.
abstract  ObjectInspector evaluateInspector(ObjectInspector rowInspector)
          Metadata evaluation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExprNodeEvaluator

public ExprNodeEvaluator()
Method Detail

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