Class UnnestRowsFunctionBase
- java.lang.Object
-
- org.apache.flink.table.runtime.functions.BuiltInSpecializedFunction
-
- org.apache.flink.table.runtime.functions.table.UnnestRowsFunctionBase
-
- All Implemented Interfaces:
org.apache.flink.table.functions.FunctionDefinition,org.apache.flink.table.functions.SpecializedFunction
- Direct Known Subclasses:
UnnestRowsFunction,UnnestRowsWithOrdinalityFunction
@Internal public abstract class UnnestRowsFunctionBase extends BuiltInSpecializedFunction
Base class for flattening ARRAY, MAP, and MULTISET using a table function.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classUnnestRowsFunctionBase.UnnestTableFunctionBaseBase class for table functions that unwrap collections and maps.-
Nested classes/interfaces inherited from interface org.apache.flink.table.functions.SpecializedFunction
org.apache.flink.table.functions.SpecializedFunction.ExpressionEvaluator, org.apache.flink.table.functions.SpecializedFunction.ExpressionEvaluatorFactory, org.apache.flink.table.functions.SpecializedFunction.SpecializedContext
-
-
Constructor Summary
Constructors Constructor Description UnnestRowsFunctionBase(boolean withOrdinality)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract org.apache.flink.table.functions.UserDefinedFunctioncreateCollectionUnnestFunction(org.apache.flink.table.functions.SpecializedFunction.SpecializedContext context, org.apache.flink.table.types.logical.LogicalType elementType, org.apache.flink.table.data.ArrayData.ElementGetter elementGetter)protected abstract org.apache.flink.table.functions.UserDefinedFunctioncreateMapUnnestFunction(org.apache.flink.table.functions.SpecializedFunction.SpecializedContext context, org.apache.flink.table.types.logical.RowType keyValTypes, org.apache.flink.table.data.ArrayData.ElementGetter keyGetter, org.apache.flink.table.data.ArrayData.ElementGetter valueGetter)static org.apache.flink.table.types.logical.LogicalTypegetUnnestedType(org.apache.flink.table.types.logical.LogicalType logicalType, boolean withOrdinality)org.apache.flink.table.functions.UserDefinedFunctionspecialize(org.apache.flink.table.functions.SpecializedFunction.SpecializedContext context)static org.apache.flink.table.types.logical.LogicalTypewrapWithOrdinality(org.apache.flink.table.types.logical.LogicalType baseType)-
Methods inherited from class org.apache.flink.table.runtime.functions.BuiltInSpecializedFunction
getKind, getRequirements, getTypeInference, isDeterministic
-
-
-
-
Method Detail
-
specialize
public org.apache.flink.table.functions.UserDefinedFunction specialize(org.apache.flink.table.functions.SpecializedFunction.SpecializedContext context)
-
createCollectionUnnestFunction
protected abstract org.apache.flink.table.functions.UserDefinedFunction createCollectionUnnestFunction(org.apache.flink.table.functions.SpecializedFunction.SpecializedContext context, org.apache.flink.table.types.logical.LogicalType elementType, org.apache.flink.table.data.ArrayData.ElementGetter elementGetter)
-
createMapUnnestFunction
protected abstract org.apache.flink.table.functions.UserDefinedFunction createMapUnnestFunction(org.apache.flink.table.functions.SpecializedFunction.SpecializedContext context, org.apache.flink.table.types.logical.RowType keyValTypes, org.apache.flink.table.data.ArrayData.ElementGetter keyGetter, org.apache.flink.table.data.ArrayData.ElementGetter valueGetter)
-
getUnnestedType
public static org.apache.flink.table.types.logical.LogicalType getUnnestedType(org.apache.flink.table.types.logical.LogicalType logicalType, boolean withOrdinality)
-
wrapWithOrdinality
public static org.apache.flink.table.types.logical.LogicalType wrapWithOrdinality(org.apache.flink.table.types.logical.LogicalType baseType)
-
-