@Internal public final class CollectAggFunction<T> extends InternalAggregateFunction<org.apache.flink.table.data.MapData,CollectAggFunction.CollectAccumulator<T>>
| Modifier and Type | Class and Description |
|---|---|
static class |
CollectAggFunction.CollectAccumulator<T>
Accumulator for COLLECT.
|
| Constructor and Description |
|---|
CollectAggFunction(org.apache.flink.table.types.logical.LogicalType elementType) |
| Modifier and Type | Method and Description |
|---|---|
void |
accumulate(CollectAggFunction.CollectAccumulator<T> accumulator,
T value) |
CollectAggFunction.CollectAccumulator<T> |
createAccumulator() |
org.apache.flink.table.types.DataType |
getAccumulatorDataType() |
org.apache.flink.table.types.DataType[] |
getInputDataTypes() |
org.apache.flink.table.types.DataType |
getOutputDataType() |
org.apache.flink.table.data.MapData |
getValue(CollectAggFunction.CollectAccumulator<T> accumulator) |
void |
merge(CollectAggFunction.CollectAccumulator<T> accumulator,
Iterable<CollectAggFunction.CollectAccumulator<T>> others) |
void |
resetAccumulator(CollectAggFunction.CollectAccumulator<T> accumulator) |
void |
retract(CollectAggFunction.CollectAccumulator<T> accumulator,
T value) |
getTypeInferencegetAccumulatorType, getResultTypeclose, functionIdentifier, open, toStringpublic CollectAggFunction(org.apache.flink.table.types.logical.LogicalType elementType)
public org.apache.flink.table.types.DataType[] getInputDataTypes()
getInputDataTypes in class InternalAggregateFunction<org.apache.flink.table.data.MapData,CollectAggFunction.CollectAccumulator<T>>public org.apache.flink.table.types.DataType getAccumulatorDataType()
getAccumulatorDataType in class InternalAggregateFunction<org.apache.flink.table.data.MapData,CollectAggFunction.CollectAccumulator<T>>public org.apache.flink.table.types.DataType getOutputDataType()
getOutputDataType in class InternalAggregateFunction<org.apache.flink.table.data.MapData,CollectAggFunction.CollectAccumulator<T>>public CollectAggFunction.CollectAccumulator<T> createAccumulator()
createAccumulator in class org.apache.flink.table.functions.ImperativeAggregateFunction<org.apache.flink.table.data.MapData,CollectAggFunction.CollectAccumulator<T>>public void resetAccumulator(CollectAggFunction.CollectAccumulator<T> accumulator)
public void accumulate(CollectAggFunction.CollectAccumulator<T> accumulator, T value) throws Exception
Exceptionpublic void retract(CollectAggFunction.CollectAccumulator<T> accumulator, T value) throws Exception
Exceptionpublic void merge(CollectAggFunction.CollectAccumulator<T> accumulator, Iterable<CollectAggFunction.CollectAccumulator<T>> others) throws Exception
Exceptionpublic org.apache.flink.table.data.MapData getValue(CollectAggFunction.CollectAccumulator<T> accumulator)
getValue in class org.apache.flink.table.functions.AggregateFunction<org.apache.flink.table.data.MapData,CollectAggFunction.CollectAccumulator<T>>Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.