Package org.apache.flink.table.functions
Interface SpecializedFunction.ExpressionEvaluatorFactory
-
- All Known Subinterfaces:
SpecializedFunction.SpecializedContext
- Enclosing interface:
- SpecializedFunction
@PublicEvolving public static interface SpecializedFunction.ExpressionEvaluatorFactory
Helper interface for creatingSpecializedFunction.ExpressionEvaluator
s.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SpecializedFunction.ExpressionEvaluator
createEvaluator(String sqlExpression, DataType outputDataType, DataTypes.Field... args)
Shorthand forcreateEvaluator(callSql("..."), ...)
.SpecializedFunction.ExpressionEvaluator
createEvaluator(Expression expression, DataType outputDataType, DataTypes.Field... args)
Creates a serializable factory that can be passed into aUserDefinedFunction
for evaluating anExpression
during runtime.SpecializedFunction.ExpressionEvaluator
createEvaluator(BuiltInFunctionDefinition function, DataType outputDataType, DataType... args)
Creates a serializable factory that can be passed into aUserDefinedFunction
for evaluating aBuiltInFunctionDefinition
during runtime.
-
-
-
Method Detail
-
createEvaluator
SpecializedFunction.ExpressionEvaluator createEvaluator(Expression expression, DataType outputDataType, DataTypes.Field... args)
Creates a serializable factory that can be passed into aUserDefinedFunction
for evaluating anExpression
during runtime.Add a dependency to the
flink-table-api-java
module to access all available expressions of Table API.Initialize the evaluator in
UserDefinedFunction.open(FunctionContext)
by callingSpecializedFunction.ExpressionEvaluator.open(FunctionContext)
. It will return an invokable instance to be called during runtime.
-
createEvaluator
SpecializedFunction.ExpressionEvaluator createEvaluator(String sqlExpression, DataType outputDataType, DataTypes.Field... args)
Shorthand forcreateEvaluator(callSql("..."), ...)
.
-
createEvaluator
SpecializedFunction.ExpressionEvaluator createEvaluator(BuiltInFunctionDefinition function, DataType outputDataType, DataType... args)
Creates a serializable factory that can be passed into aUserDefinedFunction
for evaluating aBuiltInFunctionDefinition
during runtime.This method enables to call basic functions without a dependency to the API modules. See
BuiltInFunctionDefinitions
for a list available functions.Initialize the evaluator in
UserDefinedFunction.open(FunctionContext)
by callingSpecializedFunction.ExpressionEvaluator.open(FunctionContext)
. It will return an invokable instance to be called during runtime.
-
-