org.apache.hadoop.hive.ql.exec
Class ExprNodeEvaluator
java.lang.Object
org.apache.hadoop.hive.ql.exec.ExprNodeEvaluator
- Direct Known Subclasses:
- ExprNodeColumnEvaluator, ExprNodeConstantEvaluator, ExprNodeFieldEvaluator, ExprNodeGenericFuncEvaluator, ExprNodeNullEvaluator
public abstract class ExprNodeEvaluator
- extends Object
ExprNodeEvaluator.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExprNodeEvaluator
public ExprNodeEvaluator()
initialize
public abstract ObjectInspector initialize(ObjectInspector rowInspector)
throws HiveException
- Initialize should be called once and only once. Return the ObjectInspector
for the return value, given the rowInspector.
- Throws:
HiveException
evaluate
public abstract Object evaluate(Object row)
throws HiveException
- Evaluate the expression given the row. This method should use the
rowInspector passed in from initialize to inspect the row object. The
return value will be inspected by the return value of initialize.
- Throws:
HiveException
Copyright © 2010 The Apache Software Foundation