K - the key type of the snapshot regionV - the value type the snapshot regionpublic interface SnapshotIterator<K,V> extends AutoCloseable
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.
|
Map.Entry<K,V> |
next()
Returns the next element in the iteration.
|
boolean hasNext()
throws IOException,
ClassNotFoundException
IOException - error reading the snapshotClassNotFoundException - error deserializing the snapshot elementMap.Entry<K,V> next() throws IOException, ClassNotFoundException
NoSuchElementException - there are no further elementsIOException - error reading the snapshotClassNotFoundException - error deserializing the snapshot elementvoid close()
throws IOException
close in interface AutoCloseableIOException - error closing the iterator