Package org.apache.flink.table.types.inference.strategies
package org.apache.flink.table.types.inference.strategies
-
ClassesClassDescriptionStrategy for inferring and validating an argument using a conjunction of multiple
ArgumentTypeStrategys into one likef(NUMERIC && LITERAL)Strategy for an argument that can be of any type.Type strategy that returns the n-th input argument, mapping it with the provided function.Type strategy that returns aDataTypes.ARRAY(DataType)with element type equal to the type of the first argument if it's not nullable or element to add is not nullable, otherwise it returnsDataTypes.ARRAY(DataType)with type equal to the type of the element to add to array.AnArgumentTypeStrategythat checks if the input argument is an ARRAY type and check whether its' elements are comparable.Returns the element of anLogicalTypeFamily.COLLECTIONtype.Strategy for an argument that must be an array of strings.Type strategy that returns aDataTypes.MULTISET(DataType)with element type equal to the type of the first argument.Argument type strategy that checks and casts for a common, least restrictive type of all arguments.AnInputTypeStrategythat expects that all arguments have a common array type.AnInputTypeStrategythat expects that all arguments have a common type.AnInputTypeStrategythat expects that all arguments have a common type.AnInputTypeStrategythat expects that all arguments have a common map type.Type strategy that returns a common, least restrictive type of selected arguments.AnInputTypeStrategythat checks if all input arguments can be compared with each other with the minimal provided comparison.Strategy that checks that the argument has a composite type.Strategy for an argument that must fulfill a given constraint.Strategy for an argument that corresponds to an explicitly defined type.Type strategy that returns a fixedDataType.Strategy for an argument that corresponds to a givenLogicalTypeFamilyand nullability.Type strategy that returns the first type that could be inferred.Forces a given type strategy to be nullable.Type strategy that returns the result type of a decimal addition, used internally for implementing native SUM/AVG aggregations on a Decimal type.AnArgumentTypeStrategythat expects aLogicalTypeFamily.INTEGER_NUMERICstarting from 0.AnArgumentTypeStrategythat expects:An output type strategy forBuiltInFunctionDefinitions.AT.Argument strategy forBuiltInFunctionDefinitions.JSON_QUERYto check the `ON EMPTY` and/or `ON ERROR` behaviour in combination with the return type.Type strategy forBuiltInFunctionDefinitions.LAGand { @link BuiltInFunctionDefinitions#LEAD}.Strategy that checks if an argument is a literal.Type strategy that maps anInputTypeStrategyto aTypeStrategyif the input strategy infers compatible types.Type strategy that returns the given argument if it is of the same logical type family.Placeholder for a missing type strategy.A type strategy that can be used to make a result type nullable if any or all of the selected input arguments are nullable.Strategy for inferring and validating an argument using a disjunction of multipleArgumentTypeStrategys into one likef(NUMERIC || STRING).Strategy for inferring and validating the input using a disjunction of multipleInputTypeStrategys into one likef(NUMERIC) || f(STRING).Strategy for inferring an unknown argument type from the function's outputDataTypeif available.SpecificInputTypeStrategyforBuiltInFunctionDefinitions.OVER.AnArgumentTypeStrategythat expects a percentage value between [0.0, 1.0].AnArgumentTypeStrategythat expects an array of percentages with each element between [0.0, 1.0].InputTypeStrategyspecific forBuiltInFunctionDefinitions.REINTERPRET_CAST.InputTypeStrategycomposed of an arbitrarily often repeating list ofArgumentTypeStrategys.Strategy for an argument that corresponds to a givenLogicalTypeRootand nullability.Type strategy forBuiltInFunctionDefinitions.ROWTIMEwhich mirrors the type of the passed rowtime column, but returnsLogicalTypeRoot.TIMESTAMP_WITHOUT_TIME_ZONEfor aBATCHmode.Strategy for inferring and validating a function signature likef(STRING, NUMERIC)orf(s STRING, n NUMERIC)using a sequence ofArgumentTypeStrategys.Entry point for specific input type strategies not covered inInputTypeStrategies.Entry point for specific type strategies not covered inTypeStrategies.AnInputTypeStrategythat lets you apply other strategies for subsequences of the actual arguments.A Builder forSubsequenceInputTypeStrategy.Strategy for a symbol argument of a specificTableSymbolenum.Type strategy ofTO_TIMESTAMP_LTZ.Strategy that checks if an argument is a type literal.Strategy for inferring and validating a varying function signature likef(INT, STRING, NUMERIC...)orf(i INT, str STRING, num NUMERIC...)using a sequence ofArgumentTypeStrategys.A type strategy that ensures that the result type is eitherLogicalTypeRoot.VARCHARorLogicalTypeRoot.VARBINARYfrom their corresponding non-varying roots.Strategy that does not perform any modification or validation of the input.