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​(swim.structure.Value value)
      • get

        public swim.structure.Value get​(long index)
      • getEntry

        public swim.structure.Slot getEntry​(long index)
      • updated

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

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

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

        public STree prepended​(swim.structure.Value key,
                               swim.structure.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
      • reduced

        public STree reduced​(swim.structure.Value identity,
                             swim.util.CombinerFunction<? super swim.structure.Value,​swim.structure.Value> accumulator,
                             swim.util.CombinerFunction<swim.structure.Value,​swim.structure.Value> combiner,
                             long newVersion,
                             int newPost)
      • 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​(swim.codec.Output<?> output,
                              long version)
        Specified by:
        writeDiff in class Tree
      • loadAsync

        public void loadAsync​(swim.concurrent.Cont<Tree> cont)
        Specified by:
        loadAsync in class Tree
      • soften

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

        public swim.util.Cursor<swim.structure.Slot> cursor()
        Specified by:
        cursor in class Tree
      • depthCursor

        public swim.util.Cursor<swim.structure.Slot> depthCursor​(int maxDepth)
      • deltaCursor

        public swim.util.Cursor<swim.structure.Slot> deltaCursor​(long sinceVersion)