| Modifier and Type | Method and Description |
|---|---|
abstract TypeInference |
UserDefinedFunction.getTypeInference(DataTypeFactory typeFactory)
Returns the logic for performing type inference of a call to this function definition.
|
TypeInference |
TableAggregateFunction.getTypeInference(DataTypeFactory typeFactory) |
TypeInference |
AggregateFunction.getTypeInference(DataTypeFactory typeFactory) |
TypeInference |
AsyncTableFunction.getTypeInference(DataTypeFactory typeFactory) |
TypeInference |
ScalarFunctionDefinition.getTypeInference(DataTypeFactory factory)
Deprecated.
|
TypeInference |
AggregateFunctionDefinition.getTypeInference(DataTypeFactory typeFactory)
Deprecated.
|
TypeInference |
AsyncScalarFunction.getTypeInference(DataTypeFactory typeFactory) |
TypeInference |
TableFunction.getTypeInference(DataTypeFactory typeFactory) |
TypeInference |
BuiltInFunctionDefinition.getTypeInference(DataTypeFactory typeFactory) |
TypeInference |
FunctionDefinition.getTypeInference(DataTypeFactory typeFactory)
Returns the logic for performing type inference of a call to this function definition.
|
TypeInference |
TableFunctionDefinition.getTypeInference(DataTypeFactory typeFactory)
Deprecated.
|
TypeInference |
ScalarFunction.getTypeInference(DataTypeFactory typeFactory) |
TypeInference |
TableAggregateFunctionDefinition.getTypeInference(DataTypeFactory typeFactory)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
TypeInference |
PythonTableFunction.getTypeInference(DataTypeFactory typeFactory) |
TypeInference |
PythonTableAggregateFunction.getTypeInference(DataTypeFactory typeFactory) |
TypeInference |
PythonScalarFunction.getTypeInference(DataTypeFactory typeFactory) |
TypeInference |
PythonAggregateFunction.getTypeInference(DataTypeFactory typeFactory) |
| Modifier and Type | Method and Description |
|---|---|
TypeInference |
ProcedureDefinition.getTypeInference(DataTypeFactory typeFactory) |
| Modifier and Type | Method and Description |
|---|---|
DataType |
UnresolvedDataType.toDataType(DataTypeFactory factory)
Converts this instance to a resolved
DataType possibly enriched with additional
nullability and conversion class information. |
| Constructor and Description |
|---|
UnresolvedDataType(Supplier<String> description,
Function<DataTypeFactory,DataType> resolutionFactory) |
| Modifier and Type | Method and Description |
|---|---|
static DataType |
DataTypeExtractor.extractFromGeneric(DataTypeFactory typeFactory,
Class<?> baseClass,
int genericPos,
Type contextType)
Extracts a data type from a type variable at
genericPos of baseClass using
the information of the most specific type contextType. |
static DataType |
DataTypeExtractor.extractFromGenericMethodParameter(DataTypeFactory typeFactory,
Class<?> baseClass,
Method method,
int paramPos,
int genericPos)
Extracts a data type from a method parameter by considering surrounding classes and parameter
annotation.
|
static DataType |
DataTypeExtractor.extractFromMethodOutput(DataTypeFactory typeFactory,
Class<?> baseClass,
Method method)
Extracts a data type from a method return type by considering surrounding classes and method
annotation.
|
static DataType |
DataTypeExtractor.extractFromMethodOutput(DataTypeFactory typeFactory,
Class<?> baseClass,
Method method,
Type methodReturnType)
Extracts a data type from a method return type with specifying the method's type explicitly
by considering surrounding classes and method annotation.
|
static DataType |
DataTypeExtractor.extractFromMethodParameter(DataTypeFactory typeFactory,
Class<?> baseClass,
Method method,
int paramPos)
Extracts a data type from a method parameter by considering surrounding classes and parameter
annotation.
|
static DataType |
DataTypeExtractor.extractFromType(DataTypeFactory typeFactory,
org.apache.flink.table.types.extraction.DataTypeTemplate template,
Type type)
Extracts a data type from a type without considering surrounding classes but templates.
|
static DataType |
DataTypeExtractor.extractFromType(DataTypeFactory typeFactory,
Type type)
Extracts a data type from a type without considering surrounding classes or templates.
|
static TypeInference |
TypeInferenceExtractor.forAggregateFunction(DataTypeFactory typeFactory,
Class<? extends AggregateFunction<?,?>> function)
Extracts a type inference from a
AggregateFunction. |
static TypeInference |
TypeInferenceExtractor.forAsyncScalarFunction(DataTypeFactory typeFactory,
Class<? extends AsyncScalarFunction> function)
Extracts a type inference from a
AsyncScalarFunction. |
static TypeInference |
TypeInferenceExtractor.forAsyncTableFunction(DataTypeFactory typeFactory,
Class<? extends AsyncTableFunction<?>> function)
Extracts a type inference from a
AsyncTableFunction. |
static TypeInference |
TypeInferenceExtractor.forProcedure(DataTypeFactory typeFactory,
Class<? extends Procedure> procedure)
Extracts a type in inference from a
Procedure. |
static TypeInference |
TypeInferenceExtractor.forScalarFunction(DataTypeFactory typeFactory,
Class<? extends ScalarFunction> function)
Extracts a type inference from a
ScalarFunction. |
static TypeInference |
TypeInferenceExtractor.forTableAggregateFunction(DataTypeFactory typeFactory,
Class<? extends TableAggregateFunction<?,?>> function)
Extracts a type inference from a
TableAggregateFunction. |
static TypeInference |
TypeInferenceExtractor.forTableFunction(DataTypeFactory typeFactory,
Class<? extends TableFunction<?>> function)
Extracts a type inference from a
TableFunction. |
| Modifier and Type | Method and Description |
|---|---|
DataTypeFactory |
CallContext.getDataTypeFactory()
Enables to lookup types in a catalog and resolve RAW types.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<DataType> |
TypeInferenceUtil.SurroundingInfo.inferOutputType(DataTypeFactory typeFactory) |
default DataType |
TypeTransformation.transform(DataTypeFactory factory,
DataType typeToTransform)
Transforms the given data type to a different data type.
|
| Modifier and Type | Method and Description |
|---|---|
DataType |
LegacyToNonLegacyTransformation.transform(DataTypeFactory factory,
DataType dataType) |
| Modifier and Type | Method and Description |
|---|---|
DataTypeFactory |
AdaptedCallContext.getDataTypeFactory() |
DataTypeFactory |
UnknownCallContext.getDataTypeFactory() |
| Constructor and Description |
|---|
UnknownCallContext(DataTypeFactory typeFactory,
String name,
FunctionDefinition functionDefinition,
int argumentCount,
boolean isGroupedAggregation) |
| Modifier and Type | Method and Description |
|---|---|
static DataType |
TypeInfoDataTypeConverter.toDataType(DataTypeFactory dataTypeFactory,
org.apache.flink.api.common.typeinfo.TypeInformation<?> typeInfo)
Converts the given
TypeInformation into DataType. |
static DataType |
TypeInfoDataTypeConverter.toDataType(DataTypeFactory dataTypeFactory,
org.apache.flink.api.common.typeinfo.TypeInformation<?> typeInfo,
boolean forceNullability)
Converts the given
TypeInformation into DataType but allows to make all
fields nullable independent of the nullability in the serialization stack. |
static DataType |
DataTypeUtils.transform(DataTypeFactory factory,
DataType typeToTransform,
TypeTransformation... transformations)
Transforms the given data type to a different data type using the given transformations.
|
Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.