Class InMemoryBagUserStateFactory<K,V,W extends BoundedWindow>

java.lang.Object
org.apache.beam.runners.fnexecution.state.InMemoryBagUserStateFactory<K,V,W>
All Implemented Interfaces:
StateRequestHandlers.BagUserStateHandlerFactory<K,V,W>

public class InMemoryBagUserStateFactory<K,V,W extends BoundedWindow> extends Object implements StateRequestHandlers.BagUserStateHandlerFactory<K,V,W>
Holds user state in memory. Only one key is active at a time due to the GroupReduceFunction being called once per key. Needs to be reset via resetForNewKey() before processing a new key.