Package org.iq80.leveldb.util
Class LevelIterator
java.lang.Object
org.iq80.leveldb.util.AbstractSeekingIterator<InternalKey,Slice>
org.iq80.leveldb.util.LevelIterator
- All Implemented Interfaces:
com.google.common.collect.PeekingIterator<Map.Entry<InternalKey,,Slice>> Iterator<Map.Entry<InternalKey,,Slice>> SeekingIterator<InternalKey,,Slice> InternalIterator
public final class LevelIterator
extends AbstractSeekingIterator<InternalKey,Slice>
implements InternalIterator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final InternalKeyComparatorprivate InternalTableIteratorprivate final List<FileMetaData> private intprivate final TableCache -
Constructor Summary
ConstructorsConstructorDescriptionLevelIterator(TableCache tableCache, List<FileMetaData> files, InternalKeyComparator comparator) -
Method Summary
Modifier and TypeMethodDescriptionprotected Map.Entry<InternalKey, Slice> private InternalTableIteratorprotected 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
-
tableCache
-
files
-
comparator
-
current
-
index
private int index
-
-
Constructor Details
-
LevelIterator
public LevelIterator(TableCache tableCache, List<FileMetaData> files, InternalKeyComparator comparator)
-
-
Method Details
-
seekToFirstInternal
protected void seekToFirstInternal()- Specified by:
seekToFirstInternalin classAbstractSeekingIterator<InternalKey,Slice>
-
seekInternal
- Specified by:
seekInternalin classAbstractSeekingIterator<InternalKey,Slice>
-
getNextElement
- Specified by:
getNextElementin classAbstractSeekingIterator<InternalKey,Slice>
-
openNextFile
-
toString
-