Interface UserDefinedFunctionVarArg

  • All Superinterfaces:
    UserDefinedFunction

    public interface UserDefinedFunctionVarArg
    extends UserDefinedFunction
    Interface for User Defined Functions taking an arbitrary number of arguments.
    • Method Detail

      • typer

        DataType typer​(java.util.List<DataType> argTypes)
                throws UdfException
        Defines a mapping from input to output types.
        Parameters:
        argTypes - List of argument data types.
        Returns:
        The resulting data type.
        Throws:
        UdfException - if one or more of the given data types are not supported by this UDF.
      • evaluate

        Value evaluate​(java.util.List<Value> args)
                throws UdfException
        Evaluates this UDF for the given argument.
        Parameters:
        args - List of arguments.
        Returns:
        The result of the evaluation.
        Throws:
        UdfException - if the evaluation failed for some reason.