Class MaxWithRetractAggFunction<T extends Comparable<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,MaxWithRetractAggFunction.MaxWithRetractAccumulator<T>>
org.apache.flink.table.runtime.functions.aggregate.MaxWithRetractAggFunction<T>
- All Implemented Interfaces:
Serializable,org.apache.flink.table.functions.FunctionDefinition
@Internal
public final class MaxWithRetractAggFunction<T extends Comparable<T>>
extends BuiltInAggregateFunction<T,MaxWithRetractAggFunction.MaxWithRetractAccumulator<T>>
Built-in MAX with retraction aggregate function.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAccumulator for MAX with retraction. -
Constructor Summary
ConstructorsConstructorDescriptionMaxWithRetractAggFunction(org.apache.flink.table.types.logical.LogicalType valueType) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccumulate(MaxWithRetractAggFunction.MaxWithRetractAccumulator<T> acc, T value) org.apache.flink.table.types.DataTypeList<org.apache.flink.table.types.DataType>org.apache.flink.table.types.DataTypevoidmerge(MaxWithRetractAggFunction.MaxWithRetractAccumulator<T> acc, Iterable<MaxWithRetractAggFunction.MaxWithRetractAccumulator<T>> its) voidvoidretract(MaxWithRetractAggFunction.MaxWithRetractAccumulator<T> acc, T value) 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
-
MaxWithRetractAggFunction
public MaxWithRetractAggFunction(org.apache.flink.table.types.logical.LogicalType valueType)
-
-
Method Details
-
getArgumentDataTypes
- Overrides:
getArgumentDataTypesin classBuiltInAggregateFunction<T extends Comparable<T>,MaxWithRetractAggFunction.MaxWithRetractAccumulator<T extends Comparable<T>>>
-
getAccumulatorDataType
public org.apache.flink.table.types.DataType getAccumulatorDataType()- Overrides:
getAccumulatorDataTypein classBuiltInAggregateFunction<T extends Comparable<T>,MaxWithRetractAggFunction.MaxWithRetractAccumulator<T extends Comparable<T>>>
-
getOutputDataType
public org.apache.flink.table.types.DataType getOutputDataType()- Overrides:
getOutputDataTypein classBuiltInAggregateFunction<T extends Comparable<T>,MaxWithRetractAggFunction.MaxWithRetractAccumulator<T extends Comparable<T>>>
-
createAccumulator
- Specified by:
createAccumulatorin classorg.apache.flink.table.functions.ImperativeAggregateFunction<T extends Comparable<T>,MaxWithRetractAggFunction.MaxWithRetractAccumulator<T extends Comparable<T>>>
-
accumulate
public void accumulate(MaxWithRetractAggFunction.MaxWithRetractAccumulator<T> acc, T value) throws Exception - Throws:
Exception
-
retract
public void retract(MaxWithRetractAggFunction.MaxWithRetractAccumulator<T> acc, T value) throws Exception - Throws:
Exception
-
merge
public void merge(MaxWithRetractAggFunction.MaxWithRetractAccumulator<T> acc, Iterable<MaxWithRetractAggFunction.MaxWithRetractAccumulator<T>> its) throws Exception - Throws:
Exception
-
resetAccumulator
-
getValue
- Specified by:
getValuein classorg.apache.flink.table.functions.AggregateFunction<T extends Comparable<T>,MaxWithRetractAggFunction.MaxWithRetractAccumulator<T extends Comparable<T>>>
-