|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.helidb.util.bplus.AbstractBPlusTreeNode<K,V>
K
- The type of keys in the node.V
- The type of values in the node.public abstract class AbstractBPlusTreeNode<K,V>
Abstract base class that can be used as a starting point for implementing the
BPlusTreeNode
interface.
Constructor Summary | |
---|---|
protected |
AbstractBPlusTreeNode(long position,
List<KeyAndValue<K,V>> records,
boolean root,
boolean full)
Constructor. |
Method Summary | |
---|---|
long |
getPosition()
Get the position of the node in the backing storage. |
List<KeyAndValue<K,V>> |
getRecords()
Get the records of this node. |
boolean |
isFull()
Is this node full? |
boolean |
isRoot()
Is this the tree's root node? |
void |
setFull(boolean b)
Set the flag signaling that this node is full. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.helidb.util.bplus.BPlusTreeNode |
---|
isLeafNode |
Constructor Detail |
---|
protected AbstractBPlusTreeNode(long position, List<KeyAndValue<K,V>> records, boolean root, boolean full)
position
- The node's position.records
- The records in the node.root
- true
if the node is the root node of a tree.full
- true
if the node is full.Method Detail |
---|
public long getPosition()
BPlusTreeNode
getPosition
in interface BPlusTreeNode<K,V>
public List<KeyAndValue<K,V>> getRecords()
BPlusTreeNode
getRecords
in interface BPlusTreeNode<K,V>
public boolean isFull()
BPlusTreeNode
isFull
in interface BPlusTreeNode<K,V>
true
if the node is full.BPlusTreeNode.setFull(boolean)
public void setFull(boolean b)
BPlusTreeNode
setFull
in interface BPlusTreeNode<K,V>
b
- true
if the node is full.BPlusTreeNode.isFull()
public boolean isRoot()
BPlusTreeNode
isRoot
in interface BPlusTreeNode<K,V>
true
if the node is the root node of a tree.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |