Class CollectAggFunction<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.MapData,CollectAggFunction.CollectAccumulator<T>>
org.apache.flink.table.runtime.functions.aggregate.CollectAggFunction<T>
- All Implemented Interfaces:
Serializable,org.apache.flink.table.functions.FunctionDefinition
@Internal
public final class CollectAggFunction<T>
extends BuiltInAggregateFunction<org.apache.flink.table.data.MapData,CollectAggFunction.CollectAccumulator<T>>
Built-in COLLECT aggregate function.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAccumulator for COLLECT. -
Constructor Summary
ConstructorsConstructorDescriptionCollectAggFunction(org.apache.flink.table.types.logical.LogicalType elementType) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccumulate(CollectAggFunction.CollectAccumulator<T> accumulator, T value) org.apache.flink.table.types.DataTypeList<org.apache.flink.table.types.DataType>org.apache.flink.table.types.DataTypeorg.apache.flink.table.data.MapDatagetValue(CollectAggFunction.CollectAccumulator<T> accumulator) voidmerge(CollectAggFunction.CollectAccumulator<T> accumulator, Iterable<CollectAggFunction.CollectAccumulator<T>> others) voidresetAccumulator(CollectAggFunction.CollectAccumulator<T> accumulator) voidretract(CollectAggFunction.CollectAccumulator<T> accumulator, 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
-
CollectAggFunction
public CollectAggFunction(org.apache.flink.table.types.logical.LogicalType elementType)
-
-
Method Details
-
getArgumentDataTypes
- Overrides:
getArgumentDataTypesin classBuiltInAggregateFunction<org.apache.flink.table.data.MapData,CollectAggFunction.CollectAccumulator<T>>
-
getAccumulatorDataType
public org.apache.flink.table.types.DataType getAccumulatorDataType()- Overrides:
getAccumulatorDataTypein classBuiltInAggregateFunction<org.apache.flink.table.data.MapData,CollectAggFunction.CollectAccumulator<T>>
-
getOutputDataType
public org.apache.flink.table.types.DataType getOutputDataType()- Overrides:
getOutputDataTypein classBuiltInAggregateFunction<org.apache.flink.table.data.MapData,CollectAggFunction.CollectAccumulator<T>>
-
createAccumulator
- Specified by:
createAccumulatorin classorg.apache.flink.table.functions.ImperativeAggregateFunction<org.apache.flink.table.data.MapData,CollectAggFunction.CollectAccumulator<T>>
-
resetAccumulator
-
accumulate
public void accumulate(CollectAggFunction.CollectAccumulator<T> accumulator, T value) throws Exception - Throws:
Exception
-
retract
- Throws:
Exception
-
merge
public void merge(CollectAggFunction.CollectAccumulator<T> accumulator, Iterable<CollectAggFunction.CollectAccumulator<T>> others) throws Exception - Throws:
Exception
-
getValue
public org.apache.flink.table.data.MapData getValue(CollectAggFunction.CollectAccumulator<T> accumulator) - Specified by:
getValuein classorg.apache.flink.table.functions.AggregateFunction<org.apache.flink.table.data.MapData,CollectAggFunction.CollectAccumulator<T>>
-