Package org.iq80.leveldb.util
Class MergingIterator
java.lang.Object
org.iq80.leveldb.util.AbstractSeekingIterator<InternalKey,Slice>
org.iq80.leveldb.util.MergingIterator
- All Implemented Interfaces:
com.google.common.collect.PeekingIterator<Map.Entry<InternalKey,,Slice>> Iterator<Map.Entry<InternalKey,,Slice>> SeekingIterator<InternalKey,Slice>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Comparator<InternalKey> private final List<? extends InternalIterator> private final PriorityQueue<MergingIterator.ComparableIterator> -
Constructor Summary
ConstructorsConstructorDescriptionMergingIterator(List<? extends InternalIterator> levels, Comparator<InternalKey> comparator) -
Method Summary
Modifier and TypeMethodDescriptionprotected Map.Entry<InternalKey, Slice> private voidresetPriorityQueue(Comparator<InternalKey> comparator) protected voidseekInternal(InternalKey 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
-
levels
-
priorityQueue
-
comparator
-
-
Constructor Details
-
MergingIterator
-
-
Method Details
-
seekToFirstInternal
protected void seekToFirstInternal()- Specified by:
seekToFirstInternalin classAbstractSeekingIterator<InternalKey,Slice>
-
seekInternal
- Specified by:
seekInternalin classAbstractSeekingIterator<InternalKey,Slice>
-
resetPriorityQueue
-
getNextElement
- Specified by:
getNextElementin classAbstractSeekingIterator<InternalKey,Slice>
-
toString
-