Class LastValueWithRetractAggFunction<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<T,LastValueWithRetractAggFunction.LastValueWithRetractAccumulator<T>>
org.apache.flink.table.runtime.functions.aggregate.LastValueWithRetractAggFunction<T>
- All Implemented Interfaces:
Serializable,org.apache.flink.table.functions.FunctionDefinition
@Internal
public final class LastValueWithRetractAggFunction<T>
extends BuiltInAggregateFunction<T,LastValueWithRetractAggFunction.LastValueWithRetractAccumulator<T>>
Built-in LAST_VALUE with retraction aggregate function.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAccumulator for LAST_VALUE with retraction. -
Constructor Summary
ConstructorsConstructorDescriptionLastValueWithRetractAggFunction(org.apache.flink.table.types.logical.LogicalType valueType) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaccumulate(LastValueWithRetractAggFunction.LastValueWithRetractAccumulator<T> acc, Object value, Long order) voidaccumulate(LastValueWithRetractAggFunction.LastValueWithRetractAccumulator<T> acc, org.apache.flink.table.data.StringData value) voidaccumulate(LastValueWithRetractAggFunction.LastValueWithRetractAccumulator<T> acc, org.apache.flink.table.data.StringData value, Long order) org.apache.flink.table.types.DataTypeList<org.apache.flink.table.types.DataType>org.apache.flink.table.types.DataTypevoidvoidvoidretract(LastValueWithRetractAggFunction.LastValueWithRetractAccumulator<T> acc, Object value, Long order) 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
-
LastValueWithRetractAggFunction
public LastValueWithRetractAggFunction(org.apache.flink.table.types.logical.LogicalType valueType)
-
-
Method Details
-
getArgumentDataTypes
-
getAccumulatorDataType
public org.apache.flink.table.types.DataType getAccumulatorDataType() -
getOutputDataType
public org.apache.flink.table.types.DataType getOutputDataType() -
createAccumulator
- Specified by:
createAccumulatorin classorg.apache.flink.table.functions.ImperativeAggregateFunction<T,LastValueWithRetractAggFunction.LastValueWithRetractAccumulator<T>>
-
accumulate
public void accumulate(LastValueWithRetractAggFunction.LastValueWithRetractAccumulator<T> acc, Object value) throws Exception - Throws:
Exception
-
accumulate
public void accumulate(LastValueWithRetractAggFunction.LastValueWithRetractAccumulator<T> acc, Object value, Long order) throws Exception - Throws:
Exception
-
accumulate
public void accumulate(LastValueWithRetractAggFunction.LastValueWithRetractAccumulator<T> acc, org.apache.flink.table.data.StringData value) throws Exception - Throws:
Exception
-
accumulate
public void accumulate(LastValueWithRetractAggFunction.LastValueWithRetractAccumulator<T> acc, org.apache.flink.table.data.StringData value, Long order) throws Exception - Throws:
Exception
-
retract
public void retract(LastValueWithRetractAggFunction.LastValueWithRetractAccumulator<T> acc, Object value) throws Exception - Throws:
Exception
-
retract
public void retract(LastValueWithRetractAggFunction.LastValueWithRetractAccumulator<T> acc, Object value, Long order) throws Exception - Throws:
Exception
-
resetAccumulator
public void resetAccumulator(LastValueWithRetractAggFunction.LastValueWithRetractAccumulator<T> acc) -
getValue
- Specified by:
getValuein classorg.apache.flink.table.functions.AggregateFunction<T,LastValueWithRetractAggFunction.LastValueWithRetractAccumulator<T>>
-