Class AbstractMultivalueFunction.AbstractNullableEvaluator
java.lang.Object
org.elasticsearch.xpack.esql.expression.function.scalar.multivalue.AbstractMultivalueFunction.AbstractNullableEvaluator
- All Implemented Interfaces:
Closeable,AutoCloseable,EvalOperator.ExpressionEvaluator,org.elasticsearch.core.Releasable
- Direct Known Subclasses:
AbstractMultivalueFunction.AbstractEvaluator
- Enclosing class:
AbstractMultivalueFunction
public abstract static class AbstractMultivalueFunction.AbstractNullableEvaluator
extends Object
implements EvalOperator.ExpressionEvaluator
Base evaluator that can handle evaluator-checked exceptions; i.e. for expressions that can be evaluated to null.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.compute.operator.EvalOperator.ExpressionEvaluator
EvalOperator.ExpressionEvaluator.Factory -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final DriverContextprotected final EvalOperator.ExpressionEvaluator -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractNullableEvaluator(DriverContext driverContext, EvalOperator.ExpressionEvaluator field) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected abstract BlockevalNullable(Block fieldVal) Called when evaluating aBlockthat contains null values.protected BlockevalSingleValuedNullable(Block fieldRef) Called to evaluate single valued fields when the target block has null values.protected abstract Stringname()final StringtoString()
-
Field Details
-
driverContext
-
field
-
-
Constructor Details
-
AbstractNullableEvaluator
protected AbstractNullableEvaluator(DriverContext driverContext, EvalOperator.ExpressionEvaluator field)
-
-
Method Details
-
name
-
evalNullable
Called when evaluating aBlockthat contains null values.- Returns:
- the returned Block has its own reference and the caller is responsible for releasing it.
-
evalSingleValuedNullable
Called to evaluate single valued fields when the target block has null values.- Returns:
- the returned Block has its own reference and the caller is responsible for releasing it.
-
eval
- Specified by:
evalin interfaceEvalOperator.ExpressionEvaluator
-
toString
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.elasticsearch.core.Releasable
-