public static interface SpecializedFunction.ExpressionEvaluatorFactory
SpecializedFunction.ExpressionEvaluator
s.Modifier and Type | Method and Description |
---|---|
SpecializedFunction.ExpressionEvaluator |
createEvaluator(BuiltInFunctionDefinition function,
DataType outputDataType,
DataType... args)
Creates a serializable factory that can be passed into a
UserDefinedFunction for
evaluating a BuiltInFunctionDefinition during runtime. |
SpecializedFunction.ExpressionEvaluator |
createEvaluator(Expression expression,
DataType outputDataType,
DataTypes.Field... args)
Creates a serializable factory that can be passed into a
UserDefinedFunction for
evaluating an Expression during runtime. |
SpecializedFunction.ExpressionEvaluator |
createEvaluator(String sqlExpression,
DataType outputDataType,
DataTypes.Field... args)
Shorthand for
createEvaluator(callSql("..."), ...) . |
SpecializedFunction.ExpressionEvaluator createEvaluator(Expression expression, DataType outputDataType, DataTypes.Field... args)
UserDefinedFunction
for
evaluating an Expression
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
calling SpecializedFunction.ExpressionEvaluator.open(FunctionContext)
. It will return an invokable
instance to be called during runtime.
SpecializedFunction.ExpressionEvaluator createEvaluator(String sqlExpression, DataType outputDataType, DataTypes.Field... args)
createEvaluator(callSql("..."), ...)
.SpecializedFunction.ExpressionEvaluator createEvaluator(BuiltInFunctionDefinition function, DataType outputDataType, DataType... args)
UserDefinedFunction
for
evaluating a BuiltInFunctionDefinition
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
calling SpecializedFunction.ExpressionEvaluator.open(FunctionContext)
. It will return an invokable
instance to be called during runtime.
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.