N
- type of namespacepublic interface NamespaceAggsHandleFunctionBase<N> extends Function
The differences between NamespaceAggsHandleFunctionBase
and AggsHandleFunctionBase
is that the NamespaceAggsHandleFunctionBase
has namespace.
Modifier and Type | Method and Description |
---|---|
void |
accumulate(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.
|
RowData |
createAccumulators()
Initializes the accumulators and save them to a accumulators row.
|
RowData |
getAccumulators()
Gets the current accumulators (saved in a row) which contains the current aggregated results.
|
void |
merge(N namespace,
RowData otherAcc)
Merges the other accumulators into current accumulators.
|
void |
open(StateDataViewStore store)
Initialization method for the function.
|
void |
retract(RowData inputRow)
Retracts the input values from the accumulators.
|
void |
setAccumulators(N namespace,
RowData accumulators)
Set the current accumulators (saved in a row) which contains the current aggregated results.
|
void open(StateDataViewStore store) throws Exception
Exception
void setAccumulators(N namespace, RowData accumulators) throws Exception
accumulators
- current accumulatorsException
void accumulate(RowData inputRow) throws Exception
inputRow
- input values bundled in a rowException
void retract(RowData inputRow) throws Exception
inputRow
- input values bundled in a rowException
void merge(N namespace, RowData otherAcc) throws Exception
otherAcc
- The other row of accumulatorsException
RowData createAccumulators() throws Exception
Exception
RowData getAccumulators() throws Exception
Exception
void cleanup(N namespace) throws Exception
Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.