Class ArrayAppendPrependTypeStrategy
- java.lang.Object
-
- org.apache.flink.table.types.inference.strategies.ArrayAppendPrependTypeStrategy
-
- All Implemented Interfaces:
TypeStrategy
@Internal public class ArrayAppendPrependTypeStrategy extends Object implements TypeStrategy
Type strategy that returns aDataTypes.ARRAY(DataType)with element type equal to the type of the first argument if it's not nullable or element to add is not nullable, otherwise it returnsDataTypes.ARRAY(DataType)with type equal to the type of the element to add to array.
-
-
Constructor Summary
Constructors Constructor Description ArrayAppendPrependTypeStrategy()
-
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
-
-