Interface UserDefinedFunction1

    • Method Detail

      • typeMapping

        DataType typeMapping​(DataType arg1Type)
                      throws UdfException
        Defines a mapping from input to output types.
        Parameters:
        arg1Type - The data type of the single argument.
        Returns:
        The data type of the result.
        Throws:
        UdfException - if the given data type is not supported by this UDF.
      • evaluate

        Value evaluate​(Value arg1)
                throws UdfException
        Evaluates this UDF for the given argument.
        Parameters:
        arg1 - The single argument of this UDF.
        Returns:
        The result of the evaluation.
        Throws:
        UdfException - if the evaluation failed for some reason.