Class CommonTypeStrategy
- java.lang.Object
-
- org.apache.flink.table.types.inference.strategies.CommonTypeStrategy
-
- All Implemented Interfaces:
TypeStrategy
@Internal public final class CommonTypeStrategy extends Object implements TypeStrategy
Type strategy that returns a common, least restrictive type of selected arguments.
-
-
Constructor Summary
Constructors Constructor Description CommonTypeStrategy()CommonTypeStrategy(ArgumentCount argumentRange)
-
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
-
CommonTypeStrategy
public CommonTypeStrategy()
-
CommonTypeStrategy
public CommonTypeStrategy(ArgumentCount argumentRange)
-
-
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
-
-