Class TrieEntriesIterator<T,V>

java.lang.Object
org.apache.cassandra.db.tries.TriePathReconstructor
org.apache.cassandra.db.tries.TrieEntriesIterator<T,V>
All Implemented Interfaces:
Iterator<V>, Trie.ResettingTransitionsReceiver, Trie.TransitionsReceiver

public abstract class TrieEntriesIterator<T,V> extends TriePathReconstructor implements Iterator<V>
Convertor of trie entries to iterator where each entry is passed through mapContent(T, byte[], int) (to be implemented by descendants).
  • Constructor Details

    • TrieEntriesIterator

      protected TrieEntriesIterator(Trie<T> trie)
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<T>
    • next

      public V next()
      Specified by:
      next in interface Iterator<T>
    • mapContent

      protected abstract V mapContent(T content, byte[] bytes, int byteLength)