Class InterpreterEvaluator
java.lang.Object
org.apache.drill.exec.expr.fn.interpreter.InterpreterEvaluator
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
evaluate
(int recordCount, UdfUtilities udfUtilities, VectorAccessible incoming, ValueVector outVV, LogicalExpression expr) static void
evaluate
(RecordBatch incoming, ValueVector outVV, LogicalExpression expr) static ValueHolder
evaluateConstantExpr
(UdfUtilities udfUtilities, LogicalExpression expr) static ValueHolder
evaluateFunction
(DrillSimpleFunc interpreter, Object[] args, String funcName) Assigns specifiedObject[] args
to the function arguments, evaluates function and returns its result.
-
Constructor Details
-
InterpreterEvaluator
public InterpreterEvaluator()
-
-
Method Details
-
evaluateConstantExpr
-
evaluate
-
evaluate
public static void evaluate(int recordCount, UdfUtilities udfUtilities, VectorAccessible incoming, ValueVector outVV, LogicalExpression expr) -
evaluateFunction
public static ValueHolder evaluateFunction(DrillSimpleFunc interpreter, Object[] args, String funcName) throws Exception Assigns specifiedObject[] args
to the function arguments, evaluates function and returns its result.- Parameters:
interpreter
- function to be evaluatedargs
- function argumentsfuncName
- name of the function- Returns:
- result of function call stored in
ValueHolder
- Throws:
Exception
- ifargs
types does not match function input arguments types
-