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.
  • Field Details

  • Constructor Details

  • Method Details

    • name

      protected abstract String name()
    • evalNullable

      protected abstract Block evalNullable(Block fieldVal)
      Called when evaluating a Block that contains null values.
      Returns:
      the returned Block has its own reference and the caller is responsible for releasing it.
    • evalSingleValuedNullable

      protected Block evalSingleValuedNullable(Block fieldRef)
      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

      public Block eval(Page page)
      Specified by:
      eval in interface EvalOperator.ExpressionEvaluator
    • toString

      public final String toString()
      Overrides:
      toString in class Object
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface org.elasticsearch.core.Releasable