Class Least

  • All Implemented Interfaces:

    public class Least
    extends SimpleFunction
    Returns the least value of all arguments. NULL arguments are ignored; the function only produces NULL if all inputs are NULL. The type of the result is the type of the first argument.
    • Constructor Summary

      Constructor Description
    • Constructor Detail

      • Least

        public Least()
    • Method Detail

      • getReturnType

        public ColumnType getReturnType​(java.util.List<Expression> args,
                                        Schema schema)
        Description copied from class: ScalarFunction
        Returns the column type of the resulting column after applying the function. This generally depends on the column type of the inputs.
        Specified by:
        getReturnType in class ScalarFunction
        args - the arguments to the function call
        schema - the schema of the table
        the column type of the resulting column
      • evaluate

        public java.lang.Object evaluate​(Environment env,
                                         java.util.List<Expression> args)
        Description copied from class: SimpleFunction
        Evaluates the function. Should be called at runtime for every function call.
        Specified by:
        evaluate in class SimpleFunction
        env - Environment, in which the arguments are evaluated
        args - Arguments for this function
        The value of the function