Interface MergingWindowSet.MergeFunction<W>
- Type Parameters:
W-
- Enclosing class:
- MergingWindowSet<W extends Window>
public static interface MergingWindowSet.MergeFunction<W>
Callback for
MergingWindowSet.addWindow(Window, MergeFunction).-
Method Summary
Modifier and TypeMethodDescriptionvoidmerge(W mergeResult, Collection<W> mergedWindows, W stateWindowResult, Collection<W> stateWindowsToBeMerged) This gets called when a merge occurs.
-
Method Details
-
merge
void merge(W mergeResult, Collection<W> mergedWindows, W stateWindowResult, Collection<W> stateWindowsToBeMerged) throws Exception This gets called when a merge occurs.- Parameters:
mergeResult- The newly resulting mergedWindow.mergedWindows- The mergedWindow Windows.stateWindowResult- The state window of the merge result.stateWindowsToBeMerged- The merged state windows.- Throws:
Exception
-