Class FirstTypeStrategy
- java.lang.Object
-
- org.apache.flink.table.types.inference.strategies.FirstTypeStrategy
-
- All Implemented Interfaces:
TypeStrategy
@Internal public final class FirstTypeStrategy extends Object implements TypeStrategy
Type strategy that returns the first type that could be inferred.
-
-
Constructor Summary
Constructors Constructor Description FirstTypeStrategy(List<? extends TypeStrategy> typeStrategies)
-
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
-
FirstTypeStrategy
public FirstTypeStrategy(List<? extends TypeStrategy> typeStrategies)
-
-
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
-
-