- java.lang.Object
-
- swim.db.Page
-
- swim.db.BTreePage
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract BTreePage
balanced(long newVersion)
abstract BTreePage
committed(int zone, long base, long version)
abstract boolean
containsKey(Value key)
abstract boolean
containsValue(Value value)
abstract OrderedMapCursor<Value,Value>
cursor()
abstract OrderedMapCursor<Value,Value>
deltaCursor(long sinceVersion)
abstract OrderedMapCursor<Value,Value>
depthCursor(int maxDepth)
abstract BTreePage
drop(long lower, long newVersion)
static BTreePage
empty(PageContext context, int stem, long version)
abstract BTreePage
evacuated(int post, long version)
abstract Slot
firstEntry()
abstract Slot
firstEntry(Value key)
static BTreePage
fromValue(BTreePageRef pageRef, Value value)
abstract Value
get(Value key)
abstract BTreePage
getChild(int index)
abstract BTreePageRef
getChildRef(int index)
abstract Slot
getEntry(Value key)
abstract Slot
getIndex(long index)
abstract Value
getKey(int x)
abstract Slot
getSlot(int x)
abstract long
indexOf(Value key)
boolean
isBTreePage()
abstract Slot
lastEntry()
abstract BTreePage
loadTree(PageLoader pageLoader)
abstract Value
maxKey()
abstract Value
minKey()
abstract Slot
nextEntry(Value key)
abstract BTreePageRef
pageRef()
abstract Slot
previousEntry(Value key)
abstract BTreePage
reduced(Value identity, CombinerFunction<? super Value,Value> accumulator, CombinerFunction<Value,Value> combiner, long newVersion)
abstract BTreePage
removed(Value key, long newVersion)
abstract BTreeNode
split(int x, long newVersion)
abstract BTreePage
splitLeft(int x, long newVersion)
abstract BTreePage
splitRight(int x, long newVersion)
abstract BTreePage
take(long upper, long newVersion)
abstract BTreePage
uncommitted(long version)
abstract BTreePage
updated(Value key, Value newValue, long newVersion)
-
Methods inherited from class swim.db.Page
arity, base, buildDiff, childCount, diffSize, fold, isEmpty, isLeaf, isNode, isQTreePage, isSTreePage, isUTreePage, pageContext, pageSize, pageType, post, printTree, soften, span, stem, toDebugString, toHeader, toValue, treeSize, version, writeDiff, writePage, zone
-
-
-
-
Method Detail
-
isBTreePage
public boolean isBTreePage()
- Overrides:
isBTreePage
in classPage
-
pageRef
public abstract BTreePageRef pageRef()
-
containsKey
public abstract boolean containsKey(Value key)
-
containsValue
public abstract boolean containsValue(Value value)
-
indexOf
public abstract long indexOf(Value key)
-
getChildRef
public abstract BTreePageRef getChildRef(int index)
- Specified by:
getChildRef
in classPage
-
getSlot
public abstract Slot getSlot(int x)
-
getKey
public abstract Value getKey(int x)
-
minKey
public abstract Value minKey()
-
maxKey
public abstract Value maxKey()
-
getIndex
public abstract Slot getIndex(long index)
-
firstEntry
public abstract Slot firstEntry()
-
lastEntry
public abstract Slot lastEntry()
-
drop
public abstract BTreePage drop(long lower, long newVersion)
-
take
public abstract BTreePage take(long upper, long newVersion)
-
balanced
public abstract BTreePage balanced(long newVersion)
-
split
public abstract BTreeNode split(int x, long newVersion)
-
splitLeft
public abstract BTreePage splitLeft(int x, long newVersion)
-
splitRight
public abstract BTreePage splitRight(int x, long newVersion)
-
reduced
public abstract BTreePage reduced(Value identity, CombinerFunction<? super Value,Value> accumulator, CombinerFunction<Value,Value> combiner, long newVersion)
-
evacuated
public abstract BTreePage evacuated(int post, long version)
-
committed
public abstract BTreePage committed(int zone, long base, long version)
-
uncommitted
public abstract BTreePage uncommitted(long version)
- Specified by:
uncommitted
in classPage
-
loadTree
public abstract BTreePage loadTree(PageLoader pageLoader)
-
cursor
public abstract OrderedMapCursor<Value,Value> cursor()
-
depthCursor
public abstract OrderedMapCursor<Value,Value> depthCursor(int maxDepth)
-
deltaCursor
public abstract OrderedMapCursor<Value,Value> deltaCursor(long sinceVersion)
-
empty
public static BTreePage empty(PageContext context, int stem, long version)
-
fromValue
public static BTreePage fromValue(BTreePageRef pageRef, Value value)
-
-