Class AsyncCodeGenerator
java.lang.Object
org.apache.flink.table.planner.codegen.AsyncCodeGenerator
Generates an
AsyncFunction which can be used to evaluate calc projections from an async
scalar function.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.flink.table.runtime.generated.GeneratedFunction<org.apache.flink.streaming.api.functions.async.AsyncFunction<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>> generateFunction(String name, org.apache.flink.table.types.logical.RowType inputType, org.apache.flink.table.types.logical.RowType returnType, List<org.apache.calcite.rex.RexNode> calcProjection, boolean retainHeader, org.apache.flink.configuration.ReadableConfig tableConfig, ClassLoader classLoader) Creates a generated function which produces anAsyncFunctionwhich executes the calc projections.
-
Field Details
-
DEFAULT_EXCEPTION_TERM
- See Also:
-
DEFAULT_DELEGATING_FUTURE_TERM
- See Also:
-
-
Constructor Details
-
AsyncCodeGenerator
public AsyncCodeGenerator()
-
-
Method Details
-
generateFunction
public static org.apache.flink.table.runtime.generated.GeneratedFunction<org.apache.flink.streaming.api.functions.async.AsyncFunction<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>> generateFunction(String name, org.apache.flink.table.types.logical.RowType inputType, org.apache.flink.table.types.logical.RowType returnType, List<org.apache.calcite.rex.RexNode> calcProjection, boolean retainHeader, org.apache.flink.configuration.ReadableConfig tableConfig, ClassLoader classLoader) Creates a generated function which produces anAsyncFunctionwhich executes the calc projections.- Parameters:
name- The name used to generate the underlying function nameinputType- The RowType of the input RowDatareturnType- The RowType of the resulting RowDataretainHeader- If the header of the row should be retainedcalcProjection- The list of projections to be executed by this functiontableConfig- The table configurationclassLoader- The classloader to use while resolving classes- Returns:
- A
GeneratedFunctionreturning anAsyncFunctionexecuting the given list of projections
-