Class IncrementalTrieWriterBase<VALUE,​DEST,​NODE extends org.apache.cassandra.io.tries.IncrementalTrieWriterBase.BaseNode<VALUE,​NODE>>

    • Field Detail

      • stack

        protected final java.util.Deque<NODE extends org.apache.cassandra.io.tries.IncrementalTrieWriterBase.BaseNode<VALUE,​NODE>> stack
      • dest

        protected final DEST dest
    • Method Detail

      • reset

        protected void reset​(NODE root)
      • complete

        public long complete()
                      throws java.io.IOException
        Description copied from interface: IncrementalTrieWriter
        Complete the process and return the position in the file of the root node.
        Specified by:
        complete in interface IncrementalTrieWriter<VALUE>
        Throws:
        java.io.IOException
      • completeLast

        protected NODE completeLast()
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • makePartialRoot

        public abstract IncrementalTrieWriter.PartialTail makePartialRoot()
                                                                   throws java.io.IOException
        Description copied from interface: IncrementalTrieWriter
        Make a temporary in-memory representation of the unwritten nodes that covers everything added to the trie until this point. The object returned represents a "tail" for the file that needs to be attached at the "cutoff" point to the file (using e.g. TailOverridingRebufferer).
        Specified by:
        makePartialRoot in interface IncrementalTrieWriter<VALUE>
        Throws:
        java.io.IOException