W - the types of windows being managedpublic interface ActiveWindowSet<W extends BoundedWindow>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ActiveWindowSet.MergeCallback<W extends BoundedWindow>
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(W window)
Add a window to the
ActiveWindowSet. |
boolean |
mergeIfAppropriate(W window,
ActiveWindowSet.MergeCallback<W> mergeCallback)
Invoke
merge on the associated WindowFn, and return true if the window
still exists afterwards. |
void |
persist()
Save any state changes needed.
|
void |
remove(W window)
Remove a window from the
ActiveWindowSet. |
Iterable<W> |
sourceWindows(W window)
Return the set of windows that were merged to produce
window. |
void persist()
boolean add(W window)
ActiveWindowSet.void remove(W window)
ActiveWindowSet.boolean mergeIfAppropriate(W window, ActiveWindowSet.MergeCallback<W> mergeCallback) throws Exception
merge on the associated WindowFn, and return true if the window
still exists afterwards.Exception