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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMaxWithRetractAggFunction.MaxWithRetractAccumulator<T>Accumulator for MAX with retraction.
-
Constructor Summary
Constructors Constructor Description MaxWithRetractAggFunction(org.apache.flink.table.types.logical.LogicalType valueType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccumulate(MaxWithRetractAggFunction.MaxWithRetractAccumulator<T> acc, T value)MaxWithRetractAggFunction.MaxWithRetractAccumulator<T>createAccumulator()org.apache.flink.table.types.DataTypegetAccumulatorDataType()List<org.apache.flink.table.types.DataType>getArgumentDataTypes()org.apache.flink.table.types.DataTypegetOutputDataType()TgetValue(MaxWithRetractAggFunction.MaxWithRetractAccumulator<T> acc)voidmerge(MaxWithRetractAggFunction.MaxWithRetractAccumulator<T> acc, Iterable<MaxWithRetractAggFunction.MaxWithRetractAccumulator<T>> its)voidresetAccumulator(MaxWithRetractAggFunction.MaxWithRetractAccumulator<T> acc)voidretract(MaxWithRetractAggFunction.MaxWithRetractAccumulator<T> acc, T value)-
Methods inherited from class org.apache.flink.table.runtime.functions.aggregate.BuiltInAggregateFunction
getRequirements, getTypeInference, isDeterministic
-
Methods inherited from class org.apache.flink.table.functions.ImperativeAggregateFunction
getAccumulatorType, getResultType
-
Methods inherited from class org.apache.flink.table.functions.UserDefinedFunction
close, functionIdentifier, open, toString
-
-
-
-
Method Detail
-
getArgumentDataTypes
public List<org.apache.flink.table.types.DataType> 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
public MaxWithRetractAggFunction.MaxWithRetractAccumulator<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
public void resetAccumulator(MaxWithRetractAggFunction.MaxWithRetractAccumulator<T> acc)
-
getValue
public T getValue(MaxWithRetractAggFunction.MaxWithRetractAccumulator<T> acc)
- Specified by:
getValuein classorg.apache.flink.table.functions.AggregateFunction<T extends Comparable<T>,MaxWithRetractAggFunction.MaxWithRetractAccumulator<T extends Comparable<T>>>
-
-