Class 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 Detail

      • followContentTransition

        protected int followContentTransition​(int node)
      • cursor

        public 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 java.lang.String dump​(java.util.function.Function<T,​java.lang.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>