Class ArrayAggFunction<T>
java.lang.Object
org.apache.flink.table.functions.UserDefinedFunction
org.apache.flink.table.functions.ImperativeAggregateFunction<T,ACC>
org.apache.flink.table.functions.AggregateFunction<T,ACC>
org.apache.flink.table.runtime.functions.aggregate.BuiltInAggregateFunction<org.apache.flink.table.data.ArrayData,ArrayAggFunction.ArrayAggAccumulator<T>>
org.apache.flink.table.runtime.functions.aggregate.ArrayAggFunction<T>
- All Implemented Interfaces:
Serializable,org.apache.flink.table.functions.FunctionDefinition
@Internal
public final class ArrayAggFunction<T>
extends BuiltInAggregateFunction<org.apache.flink.table.data.ArrayData,ArrayAggFunction.ArrayAggAccumulator<T>>
Built-in ARRAY_AGG aggregate function.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAccumulator for ARRAY_AGG with retraction. -
Constructor Summary
ConstructorsConstructorDescriptionArrayAggFunction(org.apache.flink.table.types.logical.LogicalType elementType, boolean ignoreNulls) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccumulate(ArrayAggFunction.ArrayAggAccumulator<T> acc, T value) org.apache.flink.table.types.DataTypeList<org.apache.flink.table.types.DataType>org.apache.flink.table.types.DataTypeorg.apache.flink.table.data.ArrayDatavoidmerge(ArrayAggFunction.ArrayAggAccumulator<T> acc, Iterable<ArrayAggFunction.ArrayAggAccumulator<T>> its) voidvoidretract(ArrayAggFunction.ArrayAggAccumulator<T> acc, T value) Methods inherited from class org.apache.flink.table.runtime.functions.aggregate.BuiltInAggregateFunction
getRequirements, getTypeInference, isDeterministicMethods inherited from class org.apache.flink.table.functions.AggregateFunction
getKindMethods inherited from class org.apache.flink.table.functions.ImperativeAggregateFunction
getAccumulatorType, getResultTypeMethods inherited from class org.apache.flink.table.functions.UserDefinedFunction
close, functionIdentifier, open, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.flink.table.functions.FunctionDefinition
supportsConstantFolding
-
Constructor Details
-
ArrayAggFunction
public ArrayAggFunction(org.apache.flink.table.types.logical.LogicalType elementType, boolean ignoreNulls)
-
-
Method Details
-
getArgumentDataTypes
- Overrides:
getArgumentDataTypesin classBuiltInAggregateFunction<org.apache.flink.table.data.ArrayData,ArrayAggFunction.ArrayAggAccumulator<T>>
-
getAccumulatorDataType
public org.apache.flink.table.types.DataType getAccumulatorDataType()- Overrides:
getAccumulatorDataTypein classBuiltInAggregateFunction<org.apache.flink.table.data.ArrayData,ArrayAggFunction.ArrayAggAccumulator<T>>
-
getOutputDataType
public org.apache.flink.table.types.DataType getOutputDataType()- Overrides:
getOutputDataTypein classBuiltInAggregateFunction<org.apache.flink.table.data.ArrayData,ArrayAggFunction.ArrayAggAccumulator<T>>
-
createAccumulator
- Specified by:
createAccumulatorin classorg.apache.flink.table.functions.ImperativeAggregateFunction<org.apache.flink.table.data.ArrayData,ArrayAggFunction.ArrayAggAccumulator<T>>
-
accumulate
- Throws:
Exception
-
retract
- Throws:
Exception
-
merge
public void merge(ArrayAggFunction.ArrayAggAccumulator<T> acc, Iterable<ArrayAggFunction.ArrayAggAccumulator<T>> its) throws Exception - Throws:
Exception
-
getValue
- Specified by:
getValuein classorg.apache.flink.table.functions.AggregateFunction<org.apache.flink.table.data.ArrayData,ArrayAggFunction.ArrayAggAccumulator<T>>
-
resetAccumulator
-