public interface SamzaMapState<KeyT,ValueT>
extends org.apache.beam.sdk.state.MapState<KeyT,ValueT>
| Modifier and Type | Method and Description |
|---|---|
void |
closeIterators()
Closes the iterator returned from
readIterator(). |
org.apache.beam.sdk.state.ReadableState<java.util.Iterator<java.util.Map.Entry<KeyT,ValueT>>> |
readIterator()
Returns an iterator from the current map state.
|
org.apache.beam.sdk.state.ReadableState<java.util.Iterator<java.util.Map.Entry<KeyT,ValueT>>> readIterator()
MapState.entries()}, where we load the entries into memory and return
iterable from that. To handle large state that doesn't fit in memory, we also need this method
so it's possible to iterate on large data set and close the iterator when not needed.ReadableState of an iteratorvoid closeIterators()
readIterator().