Class ArrayAppendPrependTypeStrategy
java.lang.Object
org.apache.flink.table.types.inference.strategies.ArrayAppendPrependTypeStrategy
- All Implemented Interfaces:
TypeStrategy
Type strategy that returns a
DataTypes.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
returns DataTypes.ARRAY(DataType) with type equal to the type of the element to add to
array.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninferType(CallContext callContext) Infers a type from the given function call.
-
Constructor Details
-
ArrayAppendPrependTypeStrategy
public ArrayAppendPrependTypeStrategy()
-
-
Method Details
-
inferType
Description copied from interface:TypeStrategyInfers a type from the given function call.- Specified by:
inferTypein interfaceTypeStrategy
-