Package | Description |
---|---|
org.apache.flink.table.functions | |
org.apache.flink.table.types.inference | |
org.apache.flink.table.types.inference.strategies |
Modifier and Type | Method and Description |
---|---|
BuiltInFunctionDefinition.Builder |
BuiltInFunctionDefinition.Builder.accumulatorTypeStrategy(TypeStrategy accumulatorTypeStrategy) |
BuiltInFunctionDefinition.Builder |
BuiltInFunctionDefinition.Builder.outputTypeStrategy(TypeStrategy outputTypeStrategy) |
Modifier and Type | Field and Description |
---|---|
static TypeStrategy |
TypeStrategies.ARRAY
Type strategy that returns a
DataTypes.ARRAY(DataType) with element type equal to the
type of the first argument. |
static TypeStrategy |
TypeStrategies.MAP
Type strategy that returns a
DataTypes.MAP(DataType, DataType) with a key type equal
to type of the first argument and a value type equal to the type of second argument. |
static TypeStrategy |
TypeStrategies.MISSING
Placeholder for a missing type strategy.
|
static TypeStrategy |
TypeStrategies.ROW
Type strategy that returns a
DataTypes.ROW() with fields types equal to input types. |
Modifier and Type | Method and Description |
---|---|
static TypeStrategy |
TypeStrategies.argument(int pos)
Type strategy that returns the n-th input argument.
|
static TypeStrategy |
TypeStrategies.explicit(DataType dataType)
Type strategy that returns a fixed
DataType . |
TypeStrategy |
TypeInference.getOutputTypeStrategy() |
static TypeStrategy |
TypeStrategies.mapping(Map<InputTypeStrategy,TypeStrategy> mappings)
Type strategy that maps an
InputTypeStrategy to a TypeStrategy if the input
strategy infers identical types. |
Modifier and Type | Method and Description |
---|---|
Optional<TypeStrategy> |
TypeInference.getAccumulatorTypeStrategy() |
Modifier and Type | Method and Description |
---|---|
TypeInference.Builder |
TypeInference.Builder.accumulatorTypeStrategy(TypeStrategy accumulatorTypeStrategy)
Sets the strategy for inferring the intermediate accumulator data type of a function
call.
|
static DataType |
TypeInferenceUtil.inferOutputType(CallContext callContext,
TypeStrategy outputTypeStrategy)
Infers an output type using the given
TypeStrategy . |
TypeInference.Builder |
TypeInference.Builder.outputTypeStrategy(TypeStrategy outputTypeStrategy)
Sets the strategy for inferring the final output data type of a function call.
|
Modifier and Type | Method and Description |
---|---|
static TypeStrategy |
TypeStrategies.mapping(Map<InputTypeStrategy,TypeStrategy> mappings)
Type strategy that maps an
InputTypeStrategy to a TypeStrategy if the input
strategy infers identical types. |
Modifier and Type | Class and Description |
---|---|
class |
ExplicitTypeStrategy
Type strategy that returns a fixed
DataType . |
class |
MappingTypeStrategy
Type strategy that maps an
InputTypeStrategy to a TypeStrategy if the input
strategy infers compatible types. |
class |
MissingTypeStrategy
Placeholder for a missing type strategy.
|
class |
UseArgumentTypeStrategy
Type strategy that returns the n-th input argument.
|
Constructor and Description |
---|
MappingTypeStrategy(Map<InputTypeStrategy,TypeStrategy> mappings) |
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.