public class StateRequestHandlers
extends java.lang.Object
StateRequestHandler
s.
TODO: Add a variant which works on ByteString
s to remove encoding/decoding overhead.
Modifier and Type | Class and Description |
---|---|
static interface |
StateRequestHandlers.BagUserStateHandler<K,V,W extends BoundedWindow>
A handler for bag user state.
|
static interface |
StateRequestHandlers.BagUserStateHandlerFactory
A factory which constructs
StateRequestHandlers.BagUserStateHandler s. |
static interface |
StateRequestHandlers.MultimapSideInputHandler<K,V,W extends BoundedWindow>
A handler for multimap side inputs.
|
static interface |
StateRequestHandlers.MultimapSideInputHandlerFactory
A factory which constructs
StateRequestHandlers.MultimapSideInputHandler s. |
Constructor and Description |
---|
StateRequestHandlers() |
Modifier and Type | Method and Description |
---|---|
static StateRequestHandler |
forMultimapSideInputHandlerFactory(ProcessBundleDescriptors.ExecutableProcessBundleDescriptor processBundleDescriptor,
StateRequestHandlers.MultimapSideInputHandlerFactory multimapSideInputHandlerFactory)
Returns an adapter which converts a
StateRequestHandlers.MultimapSideInputHandlerFactory to a
StateRequestHandler . |
public static StateRequestHandler forMultimapSideInputHandlerFactory(ProcessBundleDescriptors.ExecutableProcessBundleDescriptor processBundleDescriptor, StateRequestHandlers.MultimapSideInputHandlerFactory multimapSideInputHandlerFactory)
StateRequestHandlers.MultimapSideInputHandlerFactory
to a
StateRequestHandler
.
The StateRequestHandlers.MultimapSideInputHandlerFactory
is required to handle all multimap side inputs
contained within the ProcessBundleDescriptors.ExecutableProcessBundleDescriptor
. See
ProcessBundleDescriptors.ExecutableProcessBundleDescriptor.getMultimapSideInputSpecs()
for the set of multimap
side inputs that are contained.
Instances of StateRequestHandlers.MultimapSideInputHandler
s returned by the
StateRequestHandlers.MultimapSideInputHandlerFactory
are cached.