Interface SeekingIterator<K,V>

All Superinterfaces:
Iterator<Map.Entry<K,V>>, com.google.common.collect.PeekingIterator<Map.Entry<K,V>>
All Known Subinterfaces:
InternalIterator
All Known Implementing Classes:
AbstractSeekingIterator, BlockIterator, DbIterator, InternalTableIterator, Level0Iterator, LevelIterator, MemTable.MemTableIterator, MergingIterator, SnapshotSeekingIterator, TableIterator

public interface SeekingIterator<K,V> extends com.google.common.collect.PeekingIterator<Map.Entry<K,V>>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    seek(K targetKey)
    Repositions the iterator so the key of the next BlockElement returned greater than or equal to the specified targetKey.
    void
    Repositions the iterator so the beginning of this block.

    Methods inherited from interface java.util.Iterator

    forEachRemaining, hasNext

    Methods inherited from interface com.google.common.collect.PeekingIterator

    next, peek, remove
  • Method Details

    • seekToFirst

      void seekToFirst()
      Repositions the iterator so the beginning of this block.
    • seek

      void seek(K targetKey)
      Repositions the iterator so the key of the next BlockElement returned greater than or equal to the specified targetKey.