Module swim.db
Package swim.db

Class QTreeNode


  • public final class QTreeNode
    extends QTreePage
    • Constructor Detail

      • QTreeNode

        protected QTreeNode​(QTreePageRef pageRef,
                            long version,
                            QTreePageRef[] childRefs,
                            swim.structure.Slot[] slots)
    • Method Detail

      • create

        public static QTreeNode create​(PageContext context,
                                       int stem,
                                       long version,
                                       int post,
                                       int zone,
                                       long base,
                                       long span,
                                       long x,
                                       long y,
                                       swim.structure.Value fold,
                                       QTreePageRef[] childRefs,
                                       swim.structure.Slot[] slots)
      • create

        public static QTreeNode create​(PageContext context,
                                       int stem,
                                       long version,
                                       int zone,
                                       long base,
                                       long span,
                                       long x,
                                       long y,
                                       swim.structure.Value fold,
                                       QTreePageRef[] childRefs,
                                       swim.structure.Slot[] slots)
      • create

        public static QTreeNode create​(PageContext context,
                                       int stem,
                                       long version,
                                       long span,
                                       long x,
                                       long y,
                                       swim.structure.Value fold,
                                       QTreePageRef[] childRefs,
                                       swim.structure.Slot[] slots)
      • create

        public static QTreeNode create​(PageContext context,
                                       int stem,
                                       long version,
                                       long span,
                                       swim.structure.Value fold,
                                       QTreePageRef[] childRefs,
                                       swim.structure.Slot[] slots)
      • isNode

        public boolean isNode()
        Overrides:
        isNode 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
      • getSlot

        public swim.structure.Slot getSlot​(int index)
        Specified by:
        getSlot in class QTreePage
      • containsKey

        public boolean containsKey​(swim.structure.Value key,
                                   long xk,
                                   long yk)
        Specified by:
        containsKey in class QTreePage
      • get

        public swim.structure.Value get​(swim.structure.Value key,
                                        long xk,
                                        long yk)
        Specified by:
        get in class QTreePage
      • removed

        public QTreePage removed​(swim.structure.Value key,
                                 long xk,
                                 long yk,
                                 long newVersion)
        Specified by:
        removed in class QTreePage
      • 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 QTreeNode 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 QTreePage
      • 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
      • soften

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

        public swim.util.Cursor<swim.structure.Slot> cursor​(long x,
                                                            long y)
        Specified by:
        cursor in class QTreePage
      • depthCursor

        public swim.util.Cursor<swim.structure.Slot> depthCursor​(long x,
                                                                 long y,
                                                                 int maxDepth)
        Specified by:
        depthCursor in class QTreePage
      • deltaCursor

        public swim.util.Cursor<swim.structure.Slot> deltaCursor​(long x,
                                                                 long y,
                                                                 long sinceVersion)
        Specified by:
        deltaCursor in class QTreePage
      • tileCursor

        public swim.util.Cursor<swim.structure.Slot> tileCursor​(long x,
                                                                long y)
        Specified by:
        tileCursor in class QTreePage