|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exist.storage.btree.BTree.BTreeNode
A node in the B+-tree. Every node is backed by a Page for
storing the node's data. Both, branch and leaf nodes are represented
by this class. Each node stores its keys as instances of Value
and its values as pointers of type long.
If the node is a branch, the long pointers point to the child nodes
of the branch. If it is a leaf, the pointers contain the virtual storage
of the data section associated to the key.
| Field Summary |
| Fields inherited from interface org.exist.storage.cache.Cacheable |
MAX_REF |
| Constructor Summary | |
BTree.BTreeNode(Paged.Page page,
boolean newPage)
|
|
| Method Summary | |
boolean |
allowUnload()
Is it safe to unload the Cacheable from the cache? Called before an object is actually removed. |
int |
decReferenceCount()
Decrease the reference count of this object by one and return it. |
long |
getKey()
Get a unique key for the object. |
BTree.BTreeNode |
getParent()
|
int |
getReferenceCount()
Get the current reference count. |
int |
getTimestamp()
Get the current timestamp marker. |
int |
incReferenceCount()
Increase the reference count of this object by one and return it. |
boolean |
isDirty()
|
void |
setParent(BTree.BTreeNode parent)
Set the link to the parent of this node. |
void |
setReferenceCount(int count)
Set the reference count of this object. |
void |
setTimestamp(int timestamp)
Set the timestamp marker. |
boolean |
sync(boolean syncJournal)
Called before the object is released by the cache. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BTree.BTreeNode(Paged.Page page,
boolean newPage)
| Method Detail |
public void setParent(BTree.BTreeNode parent)
parent - public BTree.BTreeNode getParent()
public int getReferenceCount()
Cacheable
getReferenceCount in interface CacheableCacheable.getReferenceCount()public int incReferenceCount()
Cacheable
incReferenceCount in interface CacheableCacheable.incReferenceCount()public void setReferenceCount(int count)
Cacheable
setReferenceCount in interface Cacheablecount - Cacheable.setReferenceCount(int)public void setTimestamp(int timestamp)
Cacheable
setTimestamp in interface Cacheabletimestamp - Cacheable.setTimestamp(int)public boolean allowUnload()
Cacheable
allowUnload in interface CacheableCacheable.allowUnload()public int getTimestamp()
Cacheable
getTimestamp in interface CacheableCacheable.getTimestamp()public boolean sync(boolean syncJournal)
Cacheable
sync in interface Cacheableorg.exist.storage.cache.Cacheable#sync()public long getKey()
Cacheable
getKey in interface CacheableCacheable.getKey()public int decReferenceCount()
Cacheable
decReferenceCount in interface CacheableCacheable.decReferenceCount()public boolean isDirty()
isDirty in interface CacheableCacheable.isDirty()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||