Class AbstractConvertFunction.AbstractEvaluator

java.lang.Object
org.elasticsearch.xpack.esql.expression.function.scalar.convert.AbstractConvertFunction.AbstractEvaluator
All Implemented Interfaces:
Closeable, AutoCloseable, EvalOperator.ExpressionEvaluator, org.elasticsearch.core.Releasable
Enclosing class:
AbstractConvertFunction

public abstract static class AbstractConvertFunction.AbstractEvaluator extends Object implements EvalOperator.ExpressionEvaluator
  • Field Details

  • Constructor Details

  • Method Details

    • name

      protected abstract String name()
    • evalBlock

      protected abstract Block evalBlock(Block b)
      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.
    • evalVector

      protected abstract Block evalVector(Vector v)
      Called when evaluating a Block that does not contain null values.
      Returns:
      the returned Block has its own reference and the caller is responsible for releasing it.
    • eval

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

      protected final void registerException(Exception exception)
    • 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