Class MatchFamilyTypeStrategy
- java.lang.Object
-
- org.apache.flink.table.types.inference.strategies.MatchFamilyTypeStrategy
-
- All Implemented Interfaces:
TypeStrategy
@Internal public final class MatchFamilyTypeStrategy extends Object implements TypeStrategy
Type strategy that returns the given argument if it is of the same logical type family.
-
-
Constructor Summary
Constructors Constructor Description MatchFamilyTypeStrategy(int argumentPos, LogicalTypeFamily matchingTypeFamily)
-
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
-
MatchFamilyTypeStrategy
public MatchFamilyTypeStrategy(int argumentPos, LogicalTypeFamily matchingTypeFamily)
-
-
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
-
-