public interface SamzaSetState<T>
extends org.apache.beam.sdk.state.SetState<T>
| Modifier and Type | Method and Description |
|---|---|
void |
closeIterators()
Closes the iterator returned from
readIterator(). |
org.apache.beam.sdk.state.ReadableState<java.util.Iterator<T>> |
readIterator()
Returns an iterator from the current set state.
|
org.apache.beam.sdk.state.ReadableState<java.util.Iterator<T>> readIterator()
ReadableState.read(), 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().