Package io.lenses.sql.udf
Interface UserDefinedFunctionVarArg
-
- All Superinterfaces:
UserDefinedFunction
public interface UserDefinedFunctionVarArg extends UserDefinedFunction
Interface for User Defined Functions taking an arbitrary number of arguments.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Valueevaluate(java.util.List<Value> args)Evaluates this UDF for the given argument.DataTypetyper(java.util.List<DataType> argTypes)Defines a mapping from input to output types.-
Methods inherited from interface io.lenses.sql.udf.UserDefinedFunction
name, owner, version
-
-
-
-
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.
-
-