Uses of Interface
org.apache.flink.table.types.inference.TypeStrategy
Packages that use TypeStrategy
Package
Description
-
Uses of TypeStrategy in org.apache.flink.table.functions
Methods in org.apache.flink.table.functions that return TypeStrategyModifier and TypeMethodDescriptionstatic TypeStrategyLegacyUserDefinedFunctionInference.getOutputTypeStrategy(ScalarFunction func) Deprecated.Methods in org.apache.flink.table.functions with parameters of type TypeStrategyModifier and TypeMethodDescriptionBuiltInFunctionDefinition.Builder.outputTypeStrategy(TypeStrategy outputTypeStrategy) -
Uses of TypeStrategy in org.apache.flink.table.types.inference
Subinterfaces of TypeStrategy in org.apache.flink.table.types.inferenceModifier and TypeInterfaceDescriptioninterfaceStrategy for inferring a function call's intermediate result data type (i.e. state entry).Fields in org.apache.flink.table.types.inference declared as TypeStrategyModifier and TypeFieldDescriptionstatic final TypeStrategyTypeStrategies.COMMONType strategy that returns a common, least restrictive type of all arguments.static final TypeStrategyTypeStrategies.MISSINGPlaceholder for a missing type strategy.Methods in org.apache.flink.table.types.inference that return TypeStrategyModifier and TypeMethodDescriptionstatic TypeStrategyTypeStrategies.aggArg0(Function<LogicalType, LogicalType> aggType, boolean nullableIfGroupingEmpty) Type strategy specific for aggregations that partially produce different nullability depending whether the result is grouped or not.static TypeStrategyTypeStrategies.argument(int pos) Type strategy that returns the n-th input argument.static TypeStrategyType strategy that returns the n-th input argument, mapping it.static TypeStrategyTypeStrategies.commonRange(ArgumentCount argumentRange) Type strategy that returns a common, least restrictive type of selected arguments.static TypeStrategyType strategy that returns a fixedDataType.static TypeStrategyTypeStrategies.first(TypeStrategy... strategies) Type strategy that returns the first type that could be inferred.static TypeStrategyTypeStrategies.forceNullable(TypeStrategy initialStrategy) Type strategy which forces the given to be nullable.TypeInference.getOutputTypeStrategy()static TypeStrategyTypeStrategies.mapping(Map<InputTypeStrategy, TypeStrategy> mappings) Type strategy that maps anInputTypeStrategyto aTypeStrategyif the input strategy infers identical types.static TypeStrategyTypeStrategies.matchFamily(int argumentPos, LogicalTypeFamily family) Type strategy that returns the given argument if it is of the same logical type family.static TypeStrategyTypeStrategies.nullableIfAllArgs(ConstantArgumentCount includedArgs, TypeStrategy initialStrategy) A type strategy that can be used to make a result type nullable if all the selected input arguments are nullable.static TypeStrategyTypeStrategies.nullableIfAllArgs(TypeStrategy initialStrategy) A type strategy that can be used to make a result type nullable if all the input arguments is nullable.static TypeStrategyTypeStrategies.nullableIfArgs(ConstantArgumentCount includedArgs, TypeStrategy initialStrategy) A type strategy that can be used to make a result type nullable if any of the selected input arguments is nullable.static TypeStrategyTypeStrategies.nullableIfArgs(TypeStrategy initialStrategy) A type strategy that can be used to make a result type nullable if any of the input arguments is nullable.static TypeStrategyTypeStrategies.varyingString(TypeStrategy initialStrategy) A type strategy that ensures that the result type is eitherLogicalTypeRoot.VARCHARorLogicalTypeRoot.VARBINARYfrom their corresponding non-varying roots.Methods in org.apache.flink.table.types.inference that return types with arguments of type TypeStrategyMethods in org.apache.flink.table.types.inference with parameters of type TypeStrategyModifier and TypeMethodDescriptionTypeInference.Builder.accumulatorTypeStrategy(TypeStrategy accumulatorTypeStrategy) Sets the strategy for inferring the intermediate accumulator data type of an aggregate function call.static TypeStrategyTypeStrategies.first(TypeStrategy... strategies) Type strategy that returns the first type that could be inferred.static TypeStrategyTypeStrategies.forceNullable(TypeStrategy initialStrategy) Type strategy which forces the given to be nullable.static DataTypeTypeInferenceUtil.inferOutputType(CallContext callContext, TypeStrategy outputTypeStrategy) Infers an output type using the givenTypeStrategy.static TypeStrategyTypeStrategies.nullableIfAllArgs(ConstantArgumentCount includedArgs, TypeStrategy initialStrategy) A type strategy that can be used to make a result type nullable if all the selected input arguments are nullable.static TypeStrategyTypeStrategies.nullableIfAllArgs(TypeStrategy initialStrategy) A type strategy that can be used to make a result type nullable if all the input arguments is nullable.static TypeStrategyTypeStrategies.nullableIfArgs(ConstantArgumentCount includedArgs, TypeStrategy initialStrategy) A type strategy that can be used to make a result type nullable if any of the selected input arguments is nullable.static TypeStrategyTypeStrategies.nullableIfArgs(TypeStrategy initialStrategy) A type strategy that can be used to make a result type nullable if any of the input arguments is nullable.static StateTypeStrategyStateTypeStrategy.of(TypeStrategy typeStrategy) TypeInference.Builder.outputTypeStrategy(TypeStrategy outputTypeStrategy) Sets the strategy for inferring the final output data type of a function call.static TypeStrategyTypeStrategies.varyingString(TypeStrategy initialStrategy) A type strategy that ensures that the result type is eitherLogicalTypeRoot.VARCHARorLogicalTypeRoot.VARBINARYfrom their corresponding non-varying roots.Method parameters in org.apache.flink.table.types.inference with type arguments of type TypeStrategyModifier and TypeMethodDescriptionstatic TypeStrategyTypeStrategies.mapping(Map<InputTypeStrategy, TypeStrategy> mappings) Type strategy that maps anInputTypeStrategyto aTypeStrategyif the input strategy infers identical types. -
Uses of TypeStrategy in org.apache.flink.table.types.inference.strategies
Classes in org.apache.flink.table.types.inference.strategies that implement TypeStrategyModifier and TypeClassDescriptionfinal classType strategy that returns the n-th input argument, mapping it with the provided function.classType 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.final classReturns the element of anLogicalTypeFamily.COLLECTIONtype.classType strategy that returns aDataTypes.MULTISET(DataType)with element type equal to the type of the first argument.final classType strategy that returns a common, least restrictive type of selected arguments.final classType strategy that returns a fixedDataType.final classType strategy that returns the first type that could be inferred.classForces a given type strategy to be nullable.classType strategy that returns the result type of a decimal addition, used internally for implementing native SUM/AVG aggregations on a Decimal type.final classAn output type strategy forBuiltInFunctionDefinitions.AT.final classType strategy that maps anInputTypeStrategyto aTypeStrategyif the input strategy infers compatible types.final classType strategy that returns the given argument if it is of the same logical type family.final classPlaceholder for a missing type strategy.final classA type strategy that can be used to make a result type nullable if any or all of the selected input arguments are nullable.classType strategy forBuiltInFunctionDefinitions.ROWTIMEwhich mirrors the type of the passed rowtime column, but returnsLogicalTypeRoot.TIMESTAMP_WITHOUT_TIME_ZONEfor aBATCHmode.classType strategy ofTO_TIMESTAMP_LTZ.final classA type strategy that ensures that the result type is eitherLogicalTypeRoot.VARCHARorLogicalTypeRoot.VARBINARYfrom their corresponding non-varying roots.Fields in org.apache.flink.table.types.inference.strategies declared as TypeStrategyModifier and TypeFieldDescriptionstatic final TypeStrategySpecificTypeStrategies.AGG_DECIMAL_PLUSSeeAggDecimalPlusTypeStrategy.static final TypeStrategySpecificTypeStrategies.ARRAYSeeArrayTypeStrategy.static final TypeStrategySpecificTypeStrategies.ARRAY_APPEND_PREPENDstatic final TypeStrategySpecificTypeStrategies.ARRAY_ELEMENTType strategy specific for array element.static final TypeStrategySpecificTypeStrategies.COLLECTSeeCollectTypeStrategy.static final TypeStrategySpecificTypeStrategies.CURRENT_WATERMARKSeeCurrentWatermarkTypeStrategy.static final TypeStrategySpecificTypeStrategies.DECIMAL_DIVIDESeeDecimalDivideTypeStrategy.static final TypeStrategySpecificTypeStrategies.DECIMAL_MODSeeDecimalModTypeStrategy.static final TypeStrategySpecificTypeStrategies.DECIMAL_PLUSSeeDecimalPlusTypeStrategy.static final TypeStrategySpecificTypeStrategies.DECIMAL_SCALE_0SeeDecimalScale0TypeStrategy.static final TypeStrategySpecificTypeStrategies.DECIMAL_TIMESSeeDecimalTimesTypeStrategy.static final TypeStrategySpecificTypeStrategies.GETSeeGetTypeStrategy.static final TypeStrategySpecificTypeStrategies.HIVE_AGG_DECIMAL_PLUSstatic final TypeStrategySpecificTypeStrategies.IF_NULLSeeIfNullTypeStrategy.static final TypeStrategySpecificTypeStrategies.INTERNAL_REPLICATE_ROWSSeeInternalReplicateRowsTypeStrategy.static final TypeStrategySpecificTypeStrategies.ITEM_ATstatic final TypeStrategySpecificTypeStrategies.LEAD_LAGStrategy forBuiltInFunctionDefinitions.LAGandBuiltInFunctionDefinitions.LEAD.static final TypeStrategySpecificTypeStrategies.MAPSeeMapTypeStrategy.static final TypeStrategySpecificTypeStrategies.MAP_ENTRIESType strategy specific forBuiltInFunctionDefinitions.MAP_ENTRIES.static final TypeStrategySpecificTypeStrategies.MAP_FROM_ARRAYSType strategy specific forBuiltInFunctionDefinitions.MAP_FROM_ARRAYS.static final TypeStrategySpecificTypeStrategies.MAP_KEYSType strategy specific forBuiltInFunctionDefinitions.MAP_KEYS.static final TypeStrategySpecificTypeStrategies.MAP_VALUESType strategy specific forBuiltInFunctionDefinitions.MAP_VALUES.static final TypeStrategySpecificTypeStrategies.PERCENTILEType strategy specific forBuiltInFunctionDefinitions.PERCENTILE.static final TypeStrategySpecificTypeStrategies.ROUNDSeeRoundTypeStrategy.static final TypeStrategySpecificTypeStrategies.ROWSeeRowTypeStrategy.static final TypeStrategySpecificTypeStrategies.ROWTIMESeeRowtimeTypeStrategy.static final TypeStrategySpecificTypeStrategies.SOURCE_WATERMARKSeeSourceWatermarkTypeStrategy.static final TypeStrategySpecificTypeStrategies.STRING_CONCATSeeStringConcatTypeStrategy.static final TypeStrategySpecificTypeStrategies.TO_TIMESTAMP_LTZstatic final TypeStrategySpecificTypeStrategies.UNUSEDSeeUnusedTypeStrategy.Constructors in org.apache.flink.table.types.inference.strategies with parameters of type TypeStrategyModifierConstructorDescriptionForceNullableTypeStrategy(TypeStrategy initialStrategy) NullableIfArgsTypeStrategy(ConstantArgumentCount includedArguments, TypeStrategy initialStrategy, boolean nullableIfAllArgsNullable) VaryingStringTypeStrategy(TypeStrategy initialStrategy) Constructor parameters in org.apache.flink.table.types.inference.strategies with type arguments of type TypeStrategyModifierConstructorDescriptionFirstTypeStrategy(List<? extends TypeStrategy> typeStrategies) MappingTypeStrategy(Map<InputTypeStrategy, TypeStrategy> mappings)
TypeInference.getStateTypeStrategies()instead.