@Internal public final class LastValueWithRetractAggFunction<T> extends BuiltInAggregateFunction<T,LastValueWithRetractAggFunction.LastValueWithRetractAccumulator<T>>
| Modifier and Type | Class and Description |
|---|---|
static class |
LastValueWithRetractAggFunction.LastValueWithRetractAccumulator<T>
Accumulator for LAST_VALUE with retraction.
|
| Constructor and Description |
|---|
LastValueWithRetractAggFunction(org.apache.flink.table.types.logical.LogicalType valueType) |
getRequirements, getTypeInference, isDeterministicgetAccumulatorType, getResultTypepublic LastValueWithRetractAggFunction(org.apache.flink.table.types.logical.LogicalType valueType)
public List<org.apache.flink.table.types.DataType> getArgumentDataTypes()
public org.apache.flink.table.types.DataType getAccumulatorDataType()
public org.apache.flink.table.types.DataType getOutputDataType()
public LastValueWithRetractAggFunction.LastValueWithRetractAccumulator<T> createAccumulator()
createAccumulator in class org.apache.flink.table.functions.ImperativeAggregateFunction<T,LastValueWithRetractAggFunction.LastValueWithRetractAccumulator<T>>public void accumulate(LastValueWithRetractAggFunction.LastValueWithRetractAccumulator<T> acc, Object value) throws Exception
Exceptionpublic void accumulate(LastValueWithRetractAggFunction.LastValueWithRetractAccumulator<T> acc, Object value, Long order) throws Exception
Exceptionpublic void accumulate(LastValueWithRetractAggFunction.LastValueWithRetractAccumulator<T> acc, org.apache.flink.table.data.StringData value) throws Exception
Exceptionpublic void accumulate(LastValueWithRetractAggFunction.LastValueWithRetractAccumulator<T> acc, org.apache.flink.table.data.StringData value, Long order) throws Exception
Exceptionpublic void retract(LastValueWithRetractAggFunction.LastValueWithRetractAccumulator<T> acc, Object value) throws Exception
Exceptionpublic void retract(LastValueWithRetractAggFunction.LastValueWithRetractAccumulator<T> acc, Object value, Long order) throws Exception
Exceptionpublic void resetAccumulator(LastValueWithRetractAggFunction.LastValueWithRetractAccumulator<T> acc)
public T getValue(LastValueWithRetractAggFunction.LastValueWithRetractAccumulator<T> acc)
getValue in class org.apache.flink.table.functions.AggregateFunction<T,LastValueWithRetractAggFunction.LastValueWithRetractAccumulator<T>>Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.