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 GeneratedFunction<AsyncFunction<RowData,RowData>> |
generateFunction(String name,
RowType inputType,
RowType returnType,
List<org.apache.calcite.rex.RexNode> calcProjection,
boolean retainHeader,
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 GeneratedFunction<AsyncFunction<RowData,RowData>> generateFunction(String name, RowType inputType, RowType returnType, List<org.apache.calcite.rex.RexNode> calcProjection, boolean retainHeader, 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–2024 The Apache Software Foundation. All rights reserved.