Module swim.db
Package swim.db

Class STreeLeaf


  • public final class STreeLeaf
    extends STreePage
    • Constructor Detail

      • STreeLeaf

        protected STreeLeaf​(STreePageRef pageRef,
                            long version,
                            swim.structure.Slot[] slots)
    • Method Detail

      • isLeaf

        public boolean isLeaf()
        Overrides:
        isLeaf in class Page
      • version

        public long version()
        Specified by:
        version in class Page
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in class Page
      • arity

        public int arity()
        Specified by:
        arity in class Page
      • childCount

        public int childCount()
        Specified by:
        childCount in class Page
      • contains

        public boolean contains​(swim.structure.Value value)
        Specified by:
        contains in class STreePage
      • getSlot

        public swim.structure.Slot getSlot​(int x)
        Specified by:
        getSlot in class STreePage
      • get

        public swim.structure.Value get​(long index)
        Specified by:
        get in class STreePage
      • getEntry

        public swim.structure.Slot getEntry​(long index)
        Specified by:
        getEntry in class STreePage
      • updated

        public STreePage updated​(long index,
                                 swim.structure.Value newValue,
                                 long newVersion)
        Specified by:
        updated in class STreePage
      • inserted

        public STreePage inserted​(long index,
                                  swim.structure.Value key,
                                  swim.structure.Value newValue,
                                  long newVersion)
        Specified by:
        inserted in class STreePage
      • pageSize

        public int pageSize()
        Overrides:
        pageSize in class Page
      • diffSize

        public int diffSize()
        Overrides:
        diffSize in class Page
      • treeSize

        public long treeSize()
        Overrides:
        treeSize in class Page
      • toHeader

        public swim.structure.Value toHeader()
        Specified by:
        toHeader in class Page
      • toValue

        public swim.structure.Value toValue()
        Specified by:
        toValue in class Page
      • reduced

        public STreeLeaf 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)
        Specified by:
        reduced in class STreePage
      • writePage

        public void writePage​(swim.codec.Output<?> output)
        Specified by:
        writePage in class Page
      • writeDiff

        public void writeDiff​(swim.codec.Output<?> output)
        Specified by:
        writeDiff in class Page
      • buildDiff

        public void buildDiff​(swim.util.Builder<Page,​?> builder)
        Specified by:
        buildDiff in class Page
      • soften

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

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

        public swim.util.Cursor<swim.structure.Slot> depthCursor​(int maxDepth)
        Specified by:
        depthCursor in class STreePage
      • deltaCursor

        public swim.util.Cursor<swim.structure.Slot> deltaCursor​(long sinceVersion)
        Specified by:
        deltaCursor in class STreePage
      • create

        public static STreeLeaf create​(PageContext context,
                                       int stem,
                                       long version,
                                       int zone,
                                       long base,
                                       swim.structure.Value fold,
                                       swim.structure.Slot[] slots)
      • create

        public static STreeLeaf create​(PageContext context,
                                       int stem,
                                       long version,
                                       swim.structure.Value fold,
                                       swim.structure.Slot[] slots)