Class NativeScalarFunction

All Implemented Interfaces:
AssignmentTestable, Function, ScalarFunction
Direct Known Subclasses:
BytesConversionFcts.FromBlobFunction, BytesConversionFcts.ToBlobFunction, FromJsonFct, MaskingFunction, TimeFcts.FloorDateFunction, TimeFcts.FloorTimestampFunction, TimeFcts.FloorTimeUuidFunction, TimeFcts.TemporalConversionFunction, ToJsonFct, TokenFct

public abstract class NativeScalarFunction extends NativeFunction implements ScalarFunction
Base class for the ScalarFunction native classes.
  • Constructor Details

  • Method Details

    • isCalledOnNullInput

      public boolean isCalledOnNullInput()
      Specified by:
      isCalledOnNullInput in interface ScalarFunction
    • isAggregate

      public final boolean isAggregate()
      Description copied from interface: Function
      Checks whether the function is an aggregate function or not.
      Specified by:
      isAggregate in interface Function
      Returns:
      true if the function is an aggregate function, false otherwise.
    • isPartialApplicationMonotonic

      protected boolean isPartialApplicationMonotonic(List<ByteBuffer> partialParameters)
      Checks if a partial application of the function is monotonic.

      A function is monotonic if it is either entirely nonincreasing or nondecreasing.

      Parameters:
      partialParameters - the input parameters used to create the partial application of the function
      Returns:
      true if the partial application of the function is monotonic false otherwise.