K
- the key type of the snapshot regionV
- the value type the snapshot regionpublic interface SnapshotIterator<K,V>
close()
.SnapshotReader
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the iterator and its underlying resources.
|
boolean |
hasNext()
Returns true if there are more elements in the iteration.
|
java.util.Map.Entry<K,V> |
next()
Returns the next element in the iteration.
|
boolean hasNext() throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
- error reading the snapshotjava.lang.ClassNotFoundException
- error deserializing the snapshot elementjava.util.Map.Entry<K,V> next() throws java.io.IOException, java.lang.ClassNotFoundException
java.util.NoSuchElementException
- there are no further elementsjava.io.IOException
- error reading the snapshotjava.lang.ClassNotFoundException
- error deserializing the snapshot elementvoid close() throws java.io.IOException
java.io.IOException
- error closing the iterator