Package io.lenses.sql.udf
Interface UserDefinedFunction1
-
- All Superinterfaces:
UserDefinedFunction
public interface UserDefinedFunction1 extends UserDefinedFunction
Interface for User Defined Functions taking one argument.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Valueevaluate(Value arg1)Evaluates this UDF for the given argument.DataTypetypeMapping(DataType arg1Type)Defines a mapping from input to output types.-
Methods inherited from interface io.lenses.sql.udf.UserDefinedFunction
name, owner, version
-
-
-
-
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.
-
-