Class NativeScalarFunction

    • Constructor Detail

      • NativeScalarFunction

        protected NativeScalarFunction​(java.lang.String name,
                                       AbstractType<?> returnType,
                                       AbstractType<?>... argsType)
    • Method Detail

      • 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​(java.util.List<java.nio.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.