Package org.iq80.leveldb.impl
Class SnapshotSeekingIterator
java.lang.Object
org.iq80.leveldb.util.AbstractSeekingIterator<Slice,Slice>
org.iq80.leveldb.impl.SnapshotSeekingIterator
- All Implemented Interfaces:
com.google.common.collect.PeekingIterator<Map.Entry<Slice,,Slice>> Iterator<Map.Entry<Slice,,Slice>> SeekingIterator<Slice,Slice>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DbIteratorprivate final SnapshotImplprivate final Comparator<Slice> -
Constructor Summary
ConstructorsConstructorDescriptionSnapshotSeekingIterator(DbIterator iterator, SnapshotImpl snapshot, Comparator<Slice> userComparator) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private voidfindNextUserEntry(Slice deletedKey) protected voidseekInternal(Slice targetKey) protected voidtoString()Methods inherited from class org.iq80.leveldb.util.AbstractSeekingIterator
hasNext, next, peek, remove, seek, seekToFirstMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
iterator
-
snapshot
-
userComparator
-
-
Constructor Details
-
SnapshotSeekingIterator
public SnapshotSeekingIterator(DbIterator iterator, SnapshotImpl snapshot, Comparator<Slice> userComparator)
-
-
Method Details
-
close
public void close() -
seekToFirstInternal
protected void seekToFirstInternal()- Specified by:
seekToFirstInternalin classAbstractSeekingIterator<Slice,Slice>
-
seekInternal
- Specified by:
seekInternalin classAbstractSeekingIterator<Slice,Slice>
-
getNextElement
- Specified by:
getNextElementin classAbstractSeekingIterator<Slice,Slice>
-
findNextUserEntry
-
toString
-