Module swim.db
Package swim.db

Class BTreePageRef


  • public final class BTreePageRef
    extends PageRef
    • Constructor Detail

      • BTreePageRef

        public BTreePageRef​(PageContext context,
                            PageType pageType,
                            int stem,
                            int post,
                            int zone,
                            long base,
                            long span,
                            swim.structure.Value fold,
                            Object page,
                            int pageRefSize,
                            int pageSize,
                            int diffSize,
                            long treeSize)
      • BTreePageRef

        public BTreePageRef​(PageContext context,
                            PageType pageType,
                            int stem,
                            int post,
                            int zone,
                            long base,
                            long span,
                            swim.structure.Value fold,
                            Object page)
      • BTreePageRef

        public BTreePageRef​(PageContext context,
                            PageType pageType,
                            int stem,
                            int post,
                            int zone,
                            long base,
                            long span,
                            swim.structure.Value fold)
    • Method Detail

      • stem

        public int stem()
        Specified by:
        stem in class PageRef
      • post

        public int post()
        Specified by:
        post in class PageRef
      • zone

        public int zone()
        Specified by:
        zone in class PageRef
      • base

        public long base()
        Specified by:
        base in class PageRef
      • span

        public long span()
        Specified by:
        span in class PageRef
      • fold

        public swim.structure.Value fold()
        Specified by:
        fold in class PageRef
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in class PageRef
      • pageSize

        public int pageSize()
        Specified by:
        pageSize in class PageRef
      • diffSize

        public int diffSize()
        Specified by:
        diffSize in class PageRef
      • treeSize

        public long treeSize()
        Specified by:
        treeSize in class PageRef
      • toValue

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

        public BTreePageRef 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)
      • writePageRef

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

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

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

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

        public BTreePage setPageValue​(swim.structure.Value value,
                                      boolean isResident)
        Specified by:
        setPageValue in class PageRef
      • soften

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

        public swim.util.OrderedMapCursor<swim.structure.Value,​swim.structure.Value> cursor()
        Specified by:
        cursor in class PageRef
      • depthCursor

        public swim.util.OrderedMapCursor<swim.structure.Value,​swim.structure.Value> depthCursor​(int maxDepth)
      • deltaCursor

        public swim.util.OrderedMapCursor<swim.structure.Value,​swim.structure.Value> deltaCursor​(long sinceVersion)
      • fromValue

        public static BTreePageRef fromValue​(PageContext context,
                                             int stem,
                                             swim.structure.Value value)