@Internal public final class ListAggWsWithRetractAggFunction extends BuiltInAggregateFunction<StringData,ListAggWsWithRetractAggFunction.ListAggWsWithRetractAccumulator>
Modifier and Type | Class and Description |
---|---|
static class |
ListAggWsWithRetractAggFunction.ListAggWsWithRetractAccumulator
Accumulator for LISTAGGWS with retraction.
|
Constructor and Description |
---|
ListAggWsWithRetractAggFunction() |
getRequirements, getTypeInference, isDeterministic
getKind
getAccumulatorType, getResultType
close, functionIdentifier, open, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
supportsConstantFolding
public DataType getAccumulatorDataType()
public DataType getOutputDataType()
public ListAggWsWithRetractAggFunction.ListAggWsWithRetractAccumulator createAccumulator()
ImperativeAggregateFunction
ImperativeAggregateFunction
.
The accumulator is an intermediate data structure that stores the aggregated values until a final aggregation result is computed.
createAccumulator
in class ImperativeAggregateFunction<StringData,ListAggWsWithRetractAggFunction.ListAggWsWithRetractAccumulator>
public void accumulate(ListAggWsWithRetractAggFunction.ListAggWsWithRetractAccumulator acc, StringData value, StringData lineDelimiter) throws Exception
Exception
public void retract(ListAggWsWithRetractAggFunction.ListAggWsWithRetractAccumulator acc, StringData value, StringData lineDelimiter) throws Exception
Exception
public void merge(ListAggWsWithRetractAggFunction.ListAggWsWithRetractAccumulator acc, Iterable<ListAggWsWithRetractAggFunction.ListAggWsWithRetractAccumulator> its) throws Exception
Exception
public StringData getValue(ListAggWsWithRetractAggFunction.ListAggWsWithRetractAccumulator acc)
AggregateFunction
getValue
in class AggregateFunction<StringData,ListAggWsWithRetractAggFunction.ListAggWsWithRetractAccumulator>
acc
- the accumulator which contains the current intermediate resultspublic void resetAccumulator(ListAggWsWithRetractAggFunction.ListAggWsWithRetractAccumulator acc)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.