Package org.iq80.leveldb.util
Class AbstractSeekingIterator<K,V>
java.lang.Object
org.iq80.leveldb.util.AbstractSeekingIterator<K,V>
- All Implemented Interfaces:
com.google.common.collect.PeekingIterator<Map.Entry<K,,V>> Iterator<Map.Entry<K,,V>> SeekingIterator<K,V>
- Direct Known Subclasses:
DbIterator,InternalTableIterator,Level0Iterator,LevelIterator,MergingIterator,SnapshotSeekingIterator,TableIterator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanhasNext()next()peek()final voidremove()final voidRepositions the iterator so the key of the next BlockElement returned greater than or equal to the specified targetKey.protected abstract voidseekInternal(K targetKey) final voidRepositions the iterator so the beginning of this block.protected abstract voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
nextElement
-
-
Constructor Details
-
AbstractSeekingIterator
public AbstractSeekingIterator()
-
-
Method Details
-
seekToFirst
public final void seekToFirst()Description copied from interface:SeekingIteratorRepositions the iterator so the beginning of this block.- Specified by:
seekToFirstin interfaceSeekingIterator<K,V>
-
seek
Description copied from interface:SeekingIteratorRepositions the iterator so the key of the next BlockElement returned greater than or equal to the specified targetKey.- Specified by:
seekin interfaceSeekingIterator<K,V>
-
hasNext
public final boolean hasNext() -
next
-
peek
- Specified by:
peekin interfacecom.google.common.collect.PeekingIterator<K>
-
remove
public final void remove() -
seekToFirstInternal
protected abstract void seekToFirstInternal() -
seekInternal
-
getNextElement
-