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

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.ExprNodeEvaluator
      extended by org.apache.hadoop.hive.ql.exec.ExprNodeColumnEvaluator

public class ExprNodeColumnEvaluator
extends ExprNodeEvaluator

This class support multi-level fields like "a.b.c" for historical reasons.


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

Field Detail

expr

protected exprNodeColumnDesc expr
Constructor Detail

ExprNodeColumnEvaluator

public ExprNodeColumnEvaluator(exprNodeColumnDesc expr)
Method Detail

evaluate

public void evaluate(Object row,
                     ObjectInspector rowInspector,
                     InspectableObject result)
              throws HiveException
Description copied from class: ExprNodeEvaluator
Evaluate the expression given the row and rowInspector.

Specified by:
evaluate in class ExprNodeEvaluator
result - result.o and result.oi will be set inside the method.
Throws:
HiveException

evaluateInspector

public ObjectInspector evaluateInspector(ObjectInspector rowInspector)
                                  throws HiveException
Description copied from class: ExprNodeEvaluator
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.

Specified by:
evaluateInspector in class ExprNodeEvaluator
Throws:
HiveException


Copyright © 2009 The Apache Software Foundation