Class TypeInference.Builder
- java.lang.Object
-
- org.apache.flink.table.types.inference.TypeInference.Builder
-
- Enclosing class:
- TypeInference
@PublicEvolving public static class TypeInference.Builder extends Object
Builder for configuring and creating instances ofTypeInference.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeInference.BuilderaccumulatorTypeStrategy(TypeStrategy accumulatorTypeStrategy)Sets the strategy for inferring the intermediate accumulator data type of a function call.TypeInferencebuild()TypeInference.BuilderinputTypeStrategy(InputTypeStrategy inputTypeStrategy)Sets the strategy for inferring and validating input arguments in a function call.TypeInference.BuildernamedArguments(String... argumentNames)TypeInference.BuildernamedArguments(List<String> argumentNames)Sets the list of argument names for specifying a fixed, not overloaded, not vararg input signature explicitly.TypeInference.BuilderoutputTypeStrategy(TypeStrategy outputTypeStrategy)Sets the strategy for inferring the final output data type of a function call.TypeInference.BuildertypedArguments(List<DataType> argumentTypes)Sets the list of argument types for specifying a fixed, not overloaded, not vararg input signature explicitly.TypeInference.BuildertypedArguments(DataType... argumentTypes)
-
-
-
Method Detail
-
namedArguments
public TypeInference.Builder namedArguments(List<String> argumentNames)
Sets the list of argument names for specifying a fixed, not overloaded, not vararg input signature explicitly.This information is useful for SQL's concept of named arguments using the assignment operator (e.g.
FUNC(max => 42)). The names are used for reordering the call's arguments to the formal argument order of the function.
-
namedArguments
public TypeInference.Builder namedArguments(String... argumentNames)
- See Also:
namedArguments(List)
-
typedArguments
public TypeInference.Builder typedArguments(List<DataType> argumentTypes)
Sets the list of argument types for specifying a fixed, not overloaded, not vararg input signature explicitly.This information is useful for optional arguments with default value. In particular, the number of arguments that need to be filled with a default value and their types is important.
-
typedArguments
public TypeInference.Builder typedArguments(DataType... argumentTypes)
- See Also:
typedArguments(List)
-
inputTypeStrategy
public TypeInference.Builder inputTypeStrategy(InputTypeStrategy inputTypeStrategy)
Sets the strategy for inferring and validating input arguments in a function call.A
InputTypeStrategies.WILDCARDstrategy function is assumed by default.
-
accumulatorTypeStrategy
public TypeInference.Builder accumulatorTypeStrategy(TypeStrategy accumulatorTypeStrategy)
Sets the strategy for inferring the intermediate accumulator data type of a function call.
-
outputTypeStrategy
public TypeInference.Builder outputTypeStrategy(TypeStrategy outputTypeStrategy)
Sets the strategy for inferring the final output data type of a function call.Required.
-
build
public TypeInference build()
-
-