Class SpecificInputTypeStrategies
java.lang.Object
org.apache.flink.table.types.inference.strategies.SpecificInputTypeStrategies
Entry point for specific input type strategies not covered in
InputTypeStrategies.
This primarily serves the purpose of reducing visibility of individual type strategy implementations to avoid polluting the API classpath.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final InputTypeStrategyStrategy specific forBuiltInFunctionDefinitions.ARRAY.static final ArgumentTypeStrategyArgument type derived from the array element type.static final ArgumentTypeStrategyArgument type representing the array is comparable.static final InputTypeStrategySeeCastInputTypeStrategy.static final InputTypeStrategySeeCurrentWatermarkInputTypeStrategy.static final InputTypeStrategySeeExtractInputTypeStrategy.static final InputTypeStrategyType strategy specific forBuiltInFunctionDefinitions.IN.static final ArgumentTypeStrategyArgument type strategy that expects aLogicalTypeFamily.INTEGER_NUMERICstarting from 0.static final ArgumentTypeStrategyArgument type representing all types supported in a JSON context.static final InputTypeStrategyInput strategy forBuiltInFunctionDefinitions.JSON_OBJECT.static final ArgumentTypeStrategystatic final InputTypeStrategyType strategy forBuiltInFunctionDefinitions.LAGand { @link BuiltInFunctionDefinitions#LEAD}.static final InputTypeStrategySeeMapInputTypeStrategy.static final InputTypeStrategySeeOverTypeStrategy.static final InputTypeStrategystatic final InputTypeStrategySeeTemporalOverlapsInputTypeStrategy.static final InputTypeStrategyStrategy that checks all types are equals comparable with each other.static final InputTypeStrategyStrategy that checks all types are fully comparable with each other. -
Method Summary
Modifier and TypeMethodDescriptionstatic ArgumentTypeStrategypercentage(boolean expectedNullability) AnArgumentTypeStrategythat expects a percentage value between [0.0, 1.0].static ArgumentTypeStrategypercentageArray(boolean expectedNullability) AnArgumentTypeStrategythat expects an array of percentages with each element between [0.0, 1.0].static InputTypeStrategystatic InputTypeStrategywindowTimeIndicator(TimestampKind timestampKind)
-
Field Details
-
CAST
SeeCastInputTypeStrategy. -
REINTERPRET_CAST
-
MAP
SeeMapInputTypeStrategy. -
CURRENT_WATERMARK
SeeCurrentWatermarkInputTypeStrategy. -
OVER
SeeOverTypeStrategy. -
JSON_ARGUMENT
Argument type representing all types supported in a JSON context. -
JSON_QUERY_ON_EMPTY_ERROR_BEHAVIOUR
-
ARRAY_ELEMENT_ARG
Argument type derived from the array element type. -
ARRAY_FULLY_COMPARABLE
Argument type representing the array is comparable. -
JSON_OBJECT
Input strategy forBuiltInFunctionDefinitions.JSON_OBJECT.The first argument defines the on-null behavior and is followed by any number of key-value pairs. Keys must be character string literals, while values are arbitrary expressions.
-
EXTRACT
SeeExtractInputTypeStrategy. -
TEMPORAL_OVERLAPS
SeeTemporalOverlapsInputTypeStrategy. -
INDEX
Argument type strategy that expects aLogicalTypeFamily.INTEGER_NUMERICstarting from 0. -
ARRAY
Strategy specific forBuiltInFunctionDefinitions.ARRAY.It expects at least one argument. All the arguments must have a common super type.
-
TWO_FULLY_COMPARABLE
Strategy that checks all types are fully comparable with each other. Requires exactly two arguments. -
TWO_EQUALS_COMPARABLE
Strategy that checks all types are equals comparable with each other. Requires exactly two arguments. -
IN
Type strategy specific forBuiltInFunctionDefinitions.IN. -
LEAD_LAG
Type strategy forBuiltInFunctionDefinitions.LAGand { @link BuiltInFunctionDefinitions#LEAD}.
-
-
Method Details
-
windowTimeIndicator
-
windowTimeIndicator
-
percentage
AnArgumentTypeStrategythat expects a percentage value between [0.0, 1.0]. -
percentageArray
AnArgumentTypeStrategythat expects an array of percentages with each element between [0.0, 1.0].
-