- java.lang.Object
-
- swim.db.PageRef
-
- swim.db.QTreePageRef
-
public final class QTreePageRef extends PageRef
-
-
Constructor Summary
Constructors Constructor Description QTreePageRef(PageContext context, PageType pageType, int stem, int post, int zone, long base, long span, long x, long y, Value fold)
QTreePageRef(PageContext context, PageType pageType, int stem, int post, int zone, long base, long span, long x, long y, Value fold, Object page)
QTreePageRef(PageContext context, PageType pageType, int stem, int post, int zone, long base, long span, long x, long y, Value fold, Object page, int pageRefSize, int pageSize, int diffSize, long treeSize)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
base()
void
buildDiff(Builder<Page,?> builder)
QTreePageRef
committed(int zone, long base, long version)
Cursor<Slot>
cursor()
Cursor<Slot>
cursor(long x, long y)
Cursor<Slot>
deltaCursor(long sinceVersion)
Cursor<Slot>
deltaCursor(long x, long y, long sinceVersion)
Cursor<Slot>
depthCursor(int maxDepth)
Cursor<Slot>
depthCursor(long x, long y, int maxDepth)
int
diffSize()
static QTreePageRef
empty(PageContext context, int stem, long version)
QTreePageRef
evacuated(int post, long version)
Value
fold()
static QTreePageRef
fromValue(PageContext context, int stem, Value value)
QTreePage
hardPage()
boolean
isCommitted()
boolean
isEmpty()
QTreePage
loadPage(boolean isResident)
QTreePage
loadPage(PageLoader pageLoader)
QTreePage
loadTree(boolean isResident)
QTreePage
loadTree(PageLoader pageLoader)
QTreePage
page()
PageContext
pageContext()
int
pageRefSize()
int
pageSize()
PageType
pageType()
int
post()
QTreePageRef
reduced(Value identity, CombinerFunction<? super Value,Value> accumulator, CombinerFunction<Value,Value> combiner, long newVersion)
QTreePage
setPageValue(Value value, boolean isResident)
void
soften(long version)
QTreePage
softPage()
long
softVersion()
long
span()
int
stem()
Cursor<Slot>
tileCursor()
Cursor<Slot>
tileCursor(long x, long y)
String
toString()
Value
toValue()
long
treeSize()
QTreePageRef
uncommitted(long version)
void
writeDiff(Output<?> output)
void
writePage(Output<?> output)
void
writePageRef(Output<?> output)
long
x()
long
xBase()
long
xMask()
int
xRank()
long
xSplit()
long
y()
long
yBase()
long
yMask()
int
yRank()
long
ySplit()
int
zone()
-
Methods inherited from class swim.db.PageRef
settings, toDebugString
-
-
-
-
Constructor Detail
-
QTreePageRef
public QTreePageRef(PageContext context, PageType pageType, int stem, int post, int zone, long base, long span, long x, long y, Value fold, Object page, int pageRefSize, int pageSize, int diffSize, long treeSize)
-
QTreePageRef
public QTreePageRef(PageContext context, PageType pageType, int stem, int post, int zone, long base, long span, long x, long y, Value fold, Object page)
-
QTreePageRef
public QTreePageRef(PageContext context, PageType pageType, int stem, int post, int zone, long base, long span, long x, long y, Value fold)
-
-
Method Detail
-
pageContext
public PageContext pageContext()
- Specified by:
pageContext
in classPageRef
-
x
public long x()
-
xRank
public int xRank()
-
xBase
public long xBase()
-
xMask
public long xMask()
-
xSplit
public long xSplit()
-
y
public long y()
-
yRank
public int yRank()
-
yBase
public long yBase()
-
yMask
public long yMask()
-
ySplit
public long ySplit()
-
softVersion
public long softVersion()
- Specified by:
softVersion
in classPageRef
-
isCommitted
public boolean isCommitted()
- Specified by:
isCommitted
in classPageRef
-
pageRefSize
public int pageRefSize()
- Specified by:
pageRefSize
in classPageRef
-
reduced
public QTreePageRef reduced(Value identity, CombinerFunction<? super Value,Value> accumulator, CombinerFunction<Value,Value> combiner, long newVersion)
-
evacuated
public QTreePageRef evacuated(int post, long version)
-
committed
public QTreePageRef committed(int zone, long base, long version)
-
uncommitted
public QTreePageRef uncommitted(long version)
- Specified by:
uncommitted
in classPageRef
-
writePageRef
public void writePageRef(Output<?> output)
- Specified by:
writePageRef
in classPageRef
-
setPageValue
public QTreePage setPageValue(Value value, boolean isResident)
- Specified by:
setPageValue
in classPageRef
-
loadPage
public QTreePage loadPage(PageLoader pageLoader)
-
loadTree
public QTreePage loadTree(PageLoader pageLoader)
-
empty
public static QTreePageRef empty(PageContext context, int stem, long version)
-
fromValue
public static QTreePageRef fromValue(PageContext context, int stem, Value value)
-
-