Interface StateRequestHandlers.BagUserStateHandler<K,V,W extends org.apache.beam.sdk.transforms.windowing.BoundedWindow>
-
- Enclosing class:
- StateRequestHandlers
@ThreadSafe public static interface StateRequestHandlers.BagUserStateHandler<K,V,W extends org.apache.beam.sdk.transforms.windowing.BoundedWindow>A handler for bag user state.Note that this handler is expected to be thread safe as it will be invoked concurrently.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidappend(K key, W window, java.util.Iterator<V> values)Appends the values to the bag user state for the given key and window.voidclear(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 anIterableof values representing the bag user state for the given key and window.
-
-
-
Method Detail
-
get
java.lang.Iterable<V> get(K key, W window)
Returns anIterableof values representing the bag user state for the given key and window.TODO: Add support for bag user state chunking and caching if a
Reiterableis returned.
-
append
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.
-
-