Module swim.db
Package swim.db

Class STreePageRef

java.lang.Object
swim.db.PageRef
swim.db.STreePageRef

public final class STreePageRef extends PageRef
  • Constructor Details

    • STreePageRef

      public STreePageRef(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)
    • STreePageRef

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

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

    • pageContext

      public PageContext pageContext()
      Specified by:
      pageContext in class PageRef
    • pageType

      public PageType pageType()
      Specified by:
      pageType in class PageRef
    • 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
    • page

      public STreePage page()
      Specified by:
      page in class PageRef
    • hardPage

      public STreePage hardPage()
      Specified by:
      hardPage in class PageRef
    • softPage

      public STreePage softPage()
      Specified by:
      softPage in class PageRef
    • softVersion

      public long softVersion()
      Specified by:
      softVersion in class PageRef
    • isEmpty

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

      public boolean isCommitted()
      Specified by:
      isCommitted in class PageRef
    • pageRefSize

      public int pageRefSize()
      Specified by:
      pageRefSize 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 STreePageRef 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)
    • evacuated

      public STreePageRef evacuated(int post, long version)
      Specified by:
      evacuated in class PageRef
    • committed

      public STreePageRef committed(int zone, long base, long version)
      Specified by:
      committed in class PageRef
    • uncommitted

      public STreePageRef uncommitted(long version)
      Specified by:
      uncommitted in class PageRef
    • 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 STreePage setPageValue(swim.structure.Value value, boolean isResident)
      Specified by:
      setPageValue in class PageRef
    • loadPage

      public STreePage loadPage(boolean isResident)
      Specified by:
      loadPage in class PageRef
    • loadPage

      public STreePage loadPage(PageLoader pageLoader)
      Specified by:
      loadPage in class PageRef
    • loadTree

      public STreePage loadTree(boolean isResident)
      Specified by:
      loadTree in class PageRef
    • loadTree

      public STreePage loadTree(PageLoader pageLoader)
      Specified by:
      loadTree in class PageRef
    • soften

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

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

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

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

      public String toString()
      Overrides:
      toString in class Object
    • empty

      public static STreePageRef empty(PageContext context, int stem, long version)
    • fromValue

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