Class MappingTypeStrategy
- java.lang.Object
-
- org.apache.flink.table.types.inference.strategies.MappingTypeStrategy
-
- All Implemented Interfaces:
TypeStrategy
@Internal public final class MappingTypeStrategy extends Object implements TypeStrategy
Type strategy that maps anInputTypeStrategyto aTypeStrategyif the input strategy infers compatible types.
-
-
Constructor Summary
Constructors Constructor Description MappingTypeStrategy(Map<InputTypeStrategy,TypeStrategy> mappings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)inthashCode()Optional<DataType>inferType(CallContext callContext)Infers a type from the given function call.
-
-
-
Constructor Detail
-
MappingTypeStrategy
public MappingTypeStrategy(Map<InputTypeStrategy,TypeStrategy> mappings)
-
-
Method Detail
-
inferType
public Optional<DataType> inferType(CallContext callContext)
Description copied from interface:TypeStrategyInfers a type from the given function call.- Specified by:
inferTypein interfaceTypeStrategy
-
-