Interface StateRequestHandlers.MultimapSideInputHandler<K,V,W extends org.apache.beam.sdk.transforms.windowing.BoundedWindow>
-
- All Superinterfaces:
StateRequestHandlers.SideInputHandler
- Enclosing class:
- StateRequestHandlers
@ThreadSafe public static interface StateRequestHandlers.MultimapSideInputHandler<K,V,W extends org.apache.beam.sdk.transforms.windowing.BoundedWindow> extends StateRequestHandlers.SideInputHandler
A handler for multimap side inputs.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 java.lang.Iterable<V>get(K key, W window)Returns anIterableof values representing the side input for the given key and window.java.lang.Iterable<K>get(W window)Returns anIterableof keys representing the side input for the given window.org.apache.beam.sdk.coders.Coder<K>keyCoder()Returns theCoderto use for the elements of the resulting keys iterable.org.apache.beam.sdk.coders.Coder<V>valueCoder()Returns theCoderto use for the elements of the resulting values iterable.
-
-
-
Method Detail
-
get
java.lang.Iterable<K> get(W window)
Returns anIterableof keys representing the side input for the given window.TODO: Add support for side input chunking and caching if a
Reiterableis returned.
-
get
java.lang.Iterable<V> get(K key, W window)
Returns anIterableof values representing the side input for the given key and window.TODO: Add support for side input chunking and caching if a
Reiterableis returned.
-
keyCoder
org.apache.beam.sdk.coders.Coder<K> keyCoder()
Returns theCoderto use for the elements of the resulting keys iterable.
-
valueCoder
org.apache.beam.sdk.coders.Coder<V> valueCoder()
Returns theCoderto use for the elements of the resulting values iterable.
-
-