public class AsyncCodeGenerator extends Object
AsyncFunction which can be used to evaluate calc projections from an async
scalar function.| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_DELEGATING_FUTURE_TERM |
static String |
DEFAULT_EXCEPTION_TERM |
| Constructor and Description |
|---|
AsyncCodeGenerator() |
| Modifier and Type | Method and Description |
|---|---|
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 an
AsyncFunction which executes the calc
projections. |
public static final String DEFAULT_EXCEPTION_TERM
public static final String DEFAULT_DELEGATING_FUTURE_TERM
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)
AsyncFunction which executes the calc
projections.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 classesGeneratedFunction returning an AsyncFunction executing the given
list of projectionsCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.