public final class BPTreeRecords extends BPTreePage
NO_ID| Modifier and Type | Method and Description |
|---|---|
void |
checkNode()
Check - just this level.
|
void |
checkNodeDeep()
Check - here and below
|
void |
free()
Discard with this block (for ever)
|
org.apache.jena.dboe.base.record.Record |
get(int idx) |
org.apache.jena.dboe.base.block.Block |
getBackingBlock() |
org.apache.jena.dboe.base.block.BlockMgr |
getBlockMgr() |
int |
getCount() |
org.apache.jena.dboe.base.record.Record |
getHighRecord()
Greatest in page
|
int |
getId() |
org.apache.jena.dboe.base.record.Record |
getLowRecord()
Least in page
|
int |
getMaxSize() |
String |
getRefStr() |
org.apache.jena.dboe.base.record.Record |
getSplitKey()
Return the split point for this record (need only be a key)
|
boolean |
hasAnyKeys()
Test whether this page has any keys
|
org.apache.jena.dboe.base.record.Record |
internalMaxRecord(AccessPath path)
Greatest in subtree
|
org.apache.jena.dboe.base.record.Record |
internalMinRecord(AccessPath path)
Least in subtree
|
boolean |
isFull()
Test whether this page is full (has no space for a new element) - used in "insert"
|
boolean |
isMinSize()
Test whether this page is of minimum size (removing a record would violate the packing limits) - used in "delete"
|
void |
output(org.apache.jena.atlas.io.IndentedWriter out) |
void |
release()
Mark as no longer needed
|
void |
reset(org.apache.jena.dboe.base.block.Block block) |
void |
setCount(int count) |
org.apache.jena.dboe.base.record.Record |
shiftLeft(BPTreePage other,
org.apache.jena.dboe.base.record.Record splitKey)
Move the element from the high end of other to the high end of this,
possible including the splitKey
Return the new split point (highest record in left tree; moved element for nodes)
|
org.apache.jena.dboe.base.record.Record |
shiftRight(BPTreePage other,
org.apache.jena.dboe.base.record.Record splitKey)
Move the element from the high end of this to the low end of other,
possible including the splitKey
Return the new split point (highest record in left tree for records; moved element for nodes)
|
BPTreePage |
split()
Split: place old high half in 'other'.
|
String |
toString() |
void |
write()
Write, or at least ensure will be written
|
public final org.apache.jena.dboe.base.record.Record get(int idx)
public final org.apache.jena.dboe.base.block.Block getBackingBlock()
public org.apache.jena.dboe.base.block.BlockMgr getBlockMgr()
public void reset(org.apache.jena.dboe.base.block.Block block)
public boolean isFull()
BPTreePagepublic boolean hasAnyKeys()
BPTreePagepublic boolean isMinSize()
BPTreePagepublic final void write()
BPTreePagepublic final void release()
BPTreePagepublic final void free()
BPTreePagepublic org.apache.jena.dboe.base.record.Record getSplitKey()
BPTreePagepublic BPTreePage split()
public org.apache.jena.dboe.base.record.Record shiftRight(BPTreePage other, org.apache.jena.dboe.base.record.Record splitKey)
BPTreePagepublic org.apache.jena.dboe.base.record.Record shiftLeft(BPTreePage other, org.apache.jena.dboe.base.record.Record splitKey)
BPTreePagepublic final org.apache.jena.dboe.base.record.Record internalMinRecord(AccessPath path)
BPTreePagepublic final org.apache.jena.dboe.base.record.Record internalMaxRecord(AccessPath path)
BPTreePagepublic final org.apache.jena.dboe.base.record.Record getLowRecord()
BPTreePagepublic final org.apache.jena.dboe.base.record.Record getHighRecord()
BPTreePagepublic final int getMaxSize()
public final int getCount()
public final void setCount(int count)
public final void checkNode()
BPTreePagepublic final void checkNodeDeep()
BPTreePagepublic int getId()
public String getRefStr()
public void output(org.apache.jena.atlas.io.IndentedWriter out)
Licensed under the Apache License, Version 2.0