N - type of namespacepublic interface NamespaceAggsHandleFunctionBase<N>
extends org.apache.flink.api.common.functions.Function
The differences between NamespaceAggsHandleFunctionBase and AggsHandleFunctionBase is that the NamespaceAggsHandleFunctionBase has namespace.
| Modifier and Type | Method and Description |
|---|---|
void |
accumulate(org.apache.flink.table.data.RowData inputRow)
Accumulates the input values to the accumulators.
|
void |
cleanup(N namespace)
Cleanup for the retired accumulators state.
|
void |
close()
Tear-down method for this function.
|
org.apache.flink.table.data.RowData |
createAccumulators()
Initializes the accumulators and save them to a accumulators row.
|
org.apache.flink.table.data.RowData |
getAccumulators()
Gets the current accumulators (saved in a row) which contains the current aggregated results.
|
void |
merge(N namespace,
org.apache.flink.table.data.RowData otherAcc)
Merges the other accumulators into current accumulators.
|
void |
open(StateDataViewStore store)
Initialization method for the function.
|
void |
retract(org.apache.flink.table.data.RowData inputRow)
Retracts the input values from the accumulators.
|
void |
setAccumulators(N namespace,
org.apache.flink.table.data.RowData accumulators)
Set the current accumulators (saved in a row) which contains the current aggregated results.
|
void open(StateDataViewStore store) throws Exception
Exceptionvoid setAccumulators(N namespace, org.apache.flink.table.data.RowData accumulators) throws Exception
accumulators - current accumulatorsExceptionvoid accumulate(org.apache.flink.table.data.RowData inputRow)
throws Exception
inputRow - input values bundled in a rowExceptionvoid retract(org.apache.flink.table.data.RowData inputRow)
throws Exception
inputRow - input values bundled in a rowExceptionvoid merge(N namespace, org.apache.flink.table.data.RowData otherAcc) throws Exception
otherAcc - The other row of accumulatorsExceptionorg.apache.flink.table.data.RowData createAccumulators()
throws Exception
Exceptionorg.apache.flink.table.data.RowData getAccumulators()
throws Exception
Exceptionvoid cleanup(N namespace) throws Exception
ExceptionCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.