public interface AggsHandleFunction
extends org.apache.flink.api.common.functions.Function
It is code generated to handle all AggregateFunctions together in an aggregation.
It is the entry point for aggregate operators to operate all AggregateFunctions.
| Modifier and Type | Method and Description |
|---|---|
void |
accumulate(BaseRow input)
Accumulates the input values to the accumulators.
|
void |
cleanup()
Cleanup for the retired accumulators state.
|
void |
close()
Tear-down method for this function.
|
BaseRow |
createAccumulators()
Initializes the accumulators and save them to a accumulators row.
|
BaseRow |
getAccumulators()
Gets the current accumulators (saved in a row) which contains the current
aggregated results.
|
BaseRow |
getValue()
Gets the result of the aggregation from the current accumulators.
|
void |
merge(BaseRow accumulators)
Merges the other accumulators into current accumulators.
|
void |
open(StateDataViewStore store)
Initialization method for the function.
|
void |
resetAccumulators()
Resets all the accumulators.
|
void |
retract(BaseRow input)
Retracts the input values from the accumulators.
|
void |
setAccumulators(BaseRow accumulators)
Set the current accumulators (saved in a row) which contains the current aggregated results.
|
void open(StateDataViewStore store) throws Exception
Exceptionvoid accumulate(BaseRow input) throws Exception
input - input values bundled in a rowExceptionvoid retract(BaseRow input) throws Exception
input - input values bundled in a rowExceptionvoid merge(BaseRow accumulators) throws Exception
accumulators - The other row of accumulatorsExceptionvoid setAccumulators(BaseRow accumulators) throws Exception
accumulators - current accumulatorsExceptionvoid resetAccumulators()
throws Exception
ExceptionBaseRow getAccumulators() throws Exception
ExceptionBaseRow createAccumulators() throws Exception
ExceptionBaseRow getValue() throws Exception
Exceptionvoid cleanup()
throws Exception
ExceptionCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.