|
ozone core API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ozoneDB.core.storage.gammaStore.IndexNode
org.ozoneDB.core.storage.gammaStore.IndexBranchNode
Field Summary | |
private NodeIdLoc |
nodeIdLoc
|
private static long |
serialVersionUID
|
Fields inherited from class org.ozoneDB.core.storage.gammaStore.IndexNode |
log, LONGNULL, MAXOBJECTID, MINOBJECTID |
Constructor Summary | |
(package private) |
IndexBranchNode(IndexManager indexManager)
Creates a branch node; created node places itself in the index managers cache, but is not yet connected to any other nodes. |
Method Summary | |
(package private) void |
childMinObjectIdChanged(IndexNode childNode,
long childOldMinObjectId)
|
(package private) long |
getChildNodeId(long objectId)
Returns the id of a child node of this node, containing the specified object id. |
(package private) long |
getMaxObjectId()
Returns the maximum object id that can be found be in this node |
(package private) long |
getMinObjectId()
Returns the minimum object id that can be found be in this node |
private NodeIdLoc |
getNodeIdLoc()
|
(package private) void |
putChildNode(IndexNode childNode)
|
private void |
rawPutChildNode(IndexNode childNode)
Adds a child node in this node. |
private void |
rawRemoveChildNode(IndexNode childNode)
Removes a child node from this node. |
(package private) void |
removeChildNode(IndexNode childNode)
|
protected int |
size()
Returns the number of elements in this node. |
private void |
split(IndexNode indexNode)
Splits this instance into two nodes; the specified id is used to find out which child nodes should remain in this instance, and which should be put in the other one. |
java.lang.String |
toString()
|
Methods inherited from class org.ozoneDB.core.storage.gammaStore.IndexNode |
endInvoke, finalize, getIndexManager, getMaxSize, getNextNode, getNextNodeId, getNodeId, getParentNode, getParentNodeId, getPrevNode, getPrevNodeId, getStorageName, isDirty, isFull, isFull, isInvoked, nodeIdToStorageName, read, relSize, setDirty, setDirty, setIndexManager, setMaxSize, setNextNode, setNextNodeId, setParentNode, setParentNodeId, setPrevNode, setPrevNodeId, startInvoke, storageNameToNodeId |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final long serialVersionUID
private NodeIdLoc nodeIdLoc
Constructor Detail |
IndexBranchNode(IndexManager indexManager)
Method Detail |
private NodeIdLoc getNodeIdLoc()
long getChildNodeId(long objectId)
private void rawPutChildNode(IndexNode childNode)
java.lang.IndexOutOfBoundsException
- maximum size has already been reachedvoid putChildNode(IndexNode childNode)
private void rawRemoveChildNode(IndexNode childNode)
void removeChildNode(IndexNode childNode)
org.ozoneDB.OzoneInternalException
- when given node not foundprotected final int size()
IndexNode
size
in class IndexNode
void childMinObjectIdChanged(IndexNode childNode, long childOldMinObjectId)
long getMaxObjectId()
IndexNode
getMaxObjectId
in class IndexNode
long getMinObjectId()
IndexNode
getMinObjectId
in class IndexNode
private void split(IndexNode indexNode)
public java.lang.String toString()
toString
in class IndexNode
|
ozone core API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |