@ThreadSafe public static interface StateRequestHandlers.BagUserStateHandler<K,V,W extends BoundedWindow>
Note that this handler is expected to be thread safe as it will be invoked concurrently.
Modifier and Type | Method and Description |
---|---|
void |
append(K key,
W window,
java.util.Iterator<V> values)
Appends the values to the bag user state for the given key and window.
|
void |
clear(K key,
W window)
Clears the bag user state for the given key and window.
|
java.lang.Iterable<V> |
get(K key,
W window)
Returns an
Iterable of values representing the bag user state for the given key and
window. |
java.lang.Iterable<V> get(K key, W window)
Iterable
of values representing the bag user state for the given key and
window.
TODO: Add support for bag user state chunking and caching if a Reiterable
is
returned.
void append(K key, W window, java.util.Iterator<V> values)