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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCollectAggFunction.CollectAccumulator<T>Accumulator for COLLECT.
-
Constructor Summary
Constructors Constructor Description CollectAggFunction(org.apache.flink.table.types.logical.LogicalType elementType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccumulate(CollectAggFunction.CollectAccumulator<T> accumulator, T value)CollectAggFunction.CollectAccumulator<T>createAccumulator()org.apache.flink.table.types.DataTypegetAccumulatorDataType()List<org.apache.flink.table.types.DataType>getArgumentDataTypes()org.apache.flink.table.types.DataTypegetOutputDataType()org.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, isDeterministic
-
Methods inherited from class org.apache.flink.table.functions.ImperativeAggregateFunction
getAccumulatorType, getResultType
-
-
-
-
Method Detail
-
getArgumentDataTypes
public List<org.apache.flink.table.types.DataType> 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
public CollectAggFunction.CollectAccumulator<T> createAccumulator()
- Specified by:
createAccumulatorin classorg.apache.flink.table.functions.ImperativeAggregateFunction<org.apache.flink.table.data.MapData,CollectAggFunction.CollectAccumulator<T>>
-
resetAccumulator
public void resetAccumulator(CollectAggFunction.CollectAccumulator<T> accumulator)
-
accumulate
public void accumulate(CollectAggFunction.CollectAccumulator<T> accumulator, T value) throws Exception
- Throws:
Exception
-
retract
public void retract(CollectAggFunction.CollectAccumulator<T> accumulator, T value) throws Exception
- 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>>
-
-