Class DelegatingPeekingKeyValueIterator<K,​V>

    • Constructor Detail

      • DelegatingPeekingKeyValueIterator

        public DelegatingPeekingKeyValueIterator​(java.lang.String storeName,
                                                 KeyValueIterator<K,​V> underlying)
    • Method Detail

      • peekNextKey

        public K peekNextKey()
        Description copied from interface: KeyValueIterator
        Peek at the next key without advancing the iterator
        Specified by:
        peekNextKey in interface KeyValueIterator<K,​V>
        Returns:
        the key of the next value that would be returned from the next call to next
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface KeyValueIterator<K,​V>
      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<K>
      • next

        public KeyValue<K,​V> next()
        Specified by:
        next in interface java.util.Iterator<K>