Module swim.db
Package swim.db

Class UTreeLeaf


public final class UTreeLeaf extends UTreePage
  • Constructor Details

    • UTreeLeaf

      protected UTreeLeaf(UTreePageRef pageRef, long version, swim.structure.Value value)
  • Method Details

    • isLeaf

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

      public UTreePageRef pageRef()
      Specified by:
      pageRef in class UTreePage
    • pageType

      public PageType pageType()
      Specified by:
      pageType 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
    • getChildRef

      public UTreePageRef getChildRef(int index)
      Specified by:
      getChildRef in class UTreePage
    • getChild

      public UTreePage getChild(int index)
      Specified by:
      getChild in class UTreePage
    • get

      public swim.structure.Value get()
      Specified by:
      get in class UTreePage
    • updated

      public UTreePage updated(swim.structure.Value newValue, long newVersion)
      Specified by:
      updated in class UTreePage
    • 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
    • evacuated

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

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

      public UTreeLeaf uncommitted(long version)
      Specified by:
      uncommitted in class UTreePage
    • 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
    • loadTree

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

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

      public swim.util.Cursor<swim.structure.Value> cursor()
      Specified by:
      cursor in class UTreePage
    • toString

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

      public static UTreeLeaf create(PageContext context, int stem, long version, int zone, long base, swim.structure.Value value)
    • create

      public static UTreeLeaf create(PageContext context, int stem, long version, swim.structure.Value value)
    • empty

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

      public static UTreeLeaf fromValue(UTreePageRef pageRef, swim.structure.Value value)