Class ArgumentMappingTypeStrategy
- java.lang.Object
-
- org.apache.flink.table.types.inference.strategies.ArgumentMappingTypeStrategy
-
- All Implemented Interfaces:
TypeStrategy
@Internal public final class ArgumentMappingTypeStrategy extends Object implements TypeStrategy
Type strategy that returns the n-th input argument, mapping it with the provided function.
-
-
Constructor Summary
Constructors Constructor Description ArgumentMappingTypeStrategy(int pos, Function<DataType,Optional<DataType>> mapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<DataType>inferType(CallContext callContext)Infers a type from the given function call.
-
-
-
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
-
-