Class InMemoryReadTrie<T>

java.lang.Object
org.apache.cassandra.db.tries.Trie<T>
org.apache.cassandra.db.tries.InMemoryReadTrie<T>
Direct Known Subclasses:
InMemoryTrie

public class InMemoryReadTrie<T> extends Trie<T>
In-memory trie built for fast modification and reads executing concurrently with writes from a single mutator thread. This class provides the read-only functionality, expanded in InMemoryTrie to writes.
  • Method Details

    • followContentTransition

      protected int followContentTransition(int node)
    • cursor

      public InMemoryReadTrie<T>.org.apache.cassandra.db.tries.InMemoryReadTrie.MemtableCursor cursor()
      Specified by:
      cursor in class Trie<T>
    • get

      public T get(ByteComparable path)
      Get the content mapped by the specified key. Fast implementation using integer node addresses.
    • isEmpty

      public boolean isEmpty()
    • dump

      public String dump(Function<T,String> contentToString)
      Override of dump to provide more detailed printout that includes the type of each node in the trie. We do this via a wrapping cursor that returns a content string for the type of node for every node we return.
      Overrides:
      dump in class Trie<T>