All Implemented Interfaces:
NamedWriteable, Writeable, Resolvable
Direct Known Subclasses:
BinaryScalarFunction, UnaryScalarFunction

public abstract class ScalarFunction extends Function
A ScalarFunction is a Function that takes values from some operation and converts each to another value. An example would be ABS(), which takes one value at a time, applies a function to the value (abs) and returns a new value.
  • Field Details

    • MAX_BYTES_REF_RESULT_SIZE

      public static final long MAX_BYTES_REF_RESULT_SIZE
      Limit for the BytesRef return of functions.

      To be used when there's no CircuitBreaking, as an arbitrary measure to limit memory usage.

  • Constructor Details

    • ScalarFunction

      protected ScalarFunction(Source source)
    • ScalarFunction

      protected ScalarFunction(Source source, List<Expression> fields)