Package org.iq80.leveldb.util
Class Level0Iterator
java.lang.Object
org.iq80.leveldb.util.AbstractSeekingIterator<InternalKey,Slice>
org.iq80.leveldb.util.Level0Iterator
- All Implemented Interfaces:
com.google.common.collect.PeekingIterator<Map.Entry<InternalKey,,Slice>> Iterator<Map.Entry<InternalKey,,Slice>> SeekingIterator<InternalKey,,Slice> InternalIterator
public final class Level0Iterator
extends AbstractSeekingIterator<InternalKey,Slice>
implements InternalIterator
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Comparator<InternalKey> private final List<InternalTableIterator> private final PriorityQueue<Level0Iterator.ComparableIterator> -
Constructor Summary
ConstructorsConstructorDescriptionLevel0Iterator(List<InternalTableIterator> inputs, Comparator<InternalKey> comparator) Level0Iterator(TableCache tableCache, List<FileMetaData> files, 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, hasNextMethods inherited from interface com.google.common.collect.PeekingIterator
next, peek, removeMethods inherited from interface org.iq80.leveldb.impl.SeekingIterator
seek, seekToFirst
-
Field Details
-
inputs
-
priorityQueue
-
comparator
-
-
Constructor Details
-
Level0Iterator
public Level0Iterator(TableCache tableCache, List<FileMetaData> files, Comparator<InternalKey> comparator) -
Level0Iterator
-
-
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
-