Module swim.db
Package swim.db

Class STree


  • public final class STree
    extends Tree
    • Constructor Detail

      • STree

        public STree​(TreeContext treeContext,
                     Seed seed,
                     boolean isResident,
                     boolean isTransient)
      • STree

        public STree​(TreeContext treeContext,
                     int stem,
                     long version,
                     boolean isResident,
                     boolean isTransient)
    • Method Detail

      • seed

        public Seed seed()
        Specified by:
        seed in class Tree
      • isResident

        public boolean isResident()
        Specified by:
        isResident in class Tree
      • isResident

        public STree isResident​(boolean isResident)
        Specified by:
        isResident in class Tree
      • isTransient

        public boolean isTransient()
        Specified by:
        isTransient in class Tree
      • isTransient

        public STree isTransient​(boolean isTransient)
        Specified by:
        isTransient in class Tree
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in class Tree
      • contains

        public boolean contains​(Value value)
      • get

        public Value get​(long index)
      • getEntry

        public Slot getEntry​(long index)
      • updated

        public STree updated​(long index,
                             Value newValue,
                             long newVersion,
                             int newPost)
      • inserted

        public STree inserted​(long index,
                              Value key,
                              Value newValue,
                              long newVersion,
                              int newPost)
      • appended

        public STree appended​(Value key,
                              Value newValue,
                              long newVersion,
                              int newPost)
      • prepended

        public STree prepended​(Value key,
                               Value newValue,
                               long newVersion,
                               int newPost)
      • removed

        public STree removed​(long index,
                             long newVersion,
                             int newPost)
      • removed

        public STree removed​(Object object,
                             long newVersion,
                             int newPost)
      • drop

        public STree drop​(long lower,
                          long newVersion,
                          int newPost)
      • take

        public STree take​(long upper,
                          long newVersion,
                          int newPost)
      • cleared

        public STree cleared​(long newVersion)
      • indexOf

        public long indexOf​(Object object)
      • lastIndexOf

        public long lastIndexOf​(Object object)
      • lookup

        public long lookup​(long start,
                           Object key)
      • copyToArray

        public void copyToArray​(Object[] array,
                                int offset)
      • diffSize

        public int diffSize​(long version)
        Specified by:
        diffSize in class Tree
      • treeSize

        public long treeSize()
        Specified by:
        treeSize in class Tree
      • evacuated

        public STree evacuated​(int post,
                               long version)
        Specified by:
        evacuated in class Tree
      • committed

        public STree committed​(int zone,
                               long base,
                               long version,
                               long time)
        Specified by:
        committed in class Tree
      • uncommitted

        public STree uncommitted​(long version)
        Specified by:
        uncommitted in class Tree
      • writeDiff

        public void writeDiff​(Output<?> output,
                              long version)
        Specified by:
        writeDiff in class Tree
      • buildDiff

        public void buildDiff​(long version,
                              Builder<Page,​?> builder)
        Specified by:
        buildDiff in class Tree
      • soften

        public void soften​(long version)
        Specified by:
        soften in class Tree
      • depthCursor

        public Cursor<Slot> depthCursor​(int maxDepth)
      • deltaCursor

        public Cursor<Slot> deltaCursor​(long sinceVersion)