public class EvaluationContext extends Object
Constructor and Description |
---|
EvaluationContext(RecordValued input) |
Modifier and Type | Method and Description |
---|---|
FunctionEvaluator |
constructEvaluator(EvaluatorFactory factory,
List<Object> arguments,
ScalarSettable result)
Creates an evaluator for a top-level expression, binding its
output to the provided result buffer.
|
ScalarValued |
constructSubexpressionEvaluation(EvaluatorFactory factory,
List<Object> arguments,
ScalarTokenType resultType)
Creates an evaluation of a subexpression which can be used as input to the
evaluator of the expression containing it.
|
FunctionEvaluator |
createMemoizingEvaluator(FunctionEvaluator f)
Creates an evaluator for the top-level expression
which memoizes subexpression values.
|
RecordValued |
getInput()
Gets the input record used for the top-level expression.
|
public EvaluationContext(RecordValued input)
public RecordValued getInput()
public FunctionEvaluator createMemoizingEvaluator(FunctionEvaluator f)
f
- the top-level evaluatorpublic FunctionEvaluator constructEvaluator(EvaluatorFactory factory, List<Object> arguments, ScalarSettable result)
factory
- a factory for constructing the top-level functionarguments
- the arguments to pass to the function evaluatorresult
- the buffer into which evaluation results are to be writtenpublic ScalarValued constructSubexpressionEvaluation(EvaluatorFactory factory, List<Object> arguments, ScalarTokenType resultType)
factory
- a factory for constructing the subexpression functionarguments
- the arguments to pass to the function evaluatorCopyright © 2019 Actian Corporation. All rights reserved.