org.neodatis.odb.impl.core.btree
Class ODBBTreeNodeSingle
- java.lang.Object
-
- org.neodatis.btree.impl.AbstractBTreeNode
-
- org.neodatis.btree.impl.singlevalue.BTreeNodeSingleValuePerKey
-
- org.neodatis.odb.impl.core.btree.ODBBTreeNodeSingle
-
- All Implemented Interfaces:
- java.io.Serializable, IBTreeNode, IBTreeNodeOneValuePerKey
public class ODBBTreeNodeSingle extends BTreeNodeSingleValuePerKey
The NeoDatis ODB BTree Node implementation. It extends the DefaultBTreeNode generic implementation to be able to be stored in the ODB database.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description ODBBTreeNodeSingle()ODBBTreeNodeSingle(IBTree btree)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidclear()voiddeleteChildAt(int index)IBTreeNodegetChildAt(int index, boolean throwExceptionIfNotExist)java.lang.ObjectgetChildIdAt(int childIndex, boolean throwExceptionIfDoesNotExist)java.lang.ObjectgetId()IBTreeNodegetParent()java.lang.ObjectgetParentId()java.lang.ObjectgetValueAsObjectAt(int index)booleanhasParent()voidmoveChildFromTo(int sourceIndex, int destinationIndex, boolean throwExceptionIfDoesNotExist)voidsetChildAt(IBTreeNode child, int index)voidsetChildAt(IBTreeNode node, int childIndex, int indexDestination, boolean throwExceptionIfDoesNotExist)voidsetId(java.lang.Object id)voidsetNullChildAt(int childIndex)voidsetParent(IBTreeNode node)-
Methods inherited from class org.neodatis.btree.impl.singlevalue.BTreeNodeSingleValuePerKey
getValueAt, insertKeyAndValue, search
-
Methods inherited from class org.neodatis.btree.impl.AbstractBTreeNode
deleteKeyAndValueAt, deleteKeyForLeafNode, extractRightPart, getBTree, getDegree, getKeyAndValueAt, getKeyAt, getLastChild, getLastKeyAndValue, getLastPositionChild, getMaxNbChildren, getMedian, getNbChildren, getNbKeys, getPositionOfKey, incrementNbChildren, incrementNbKeys, isFull, isLeaf, mergeWith, removeKeyAndValueAt, setBTree, setKeyAndValueAt, setKeyAndValueAt, setKeyAndValueAt, setKeyAndValueAt, setNbChildren, setNbKeys, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.neodatis.btree.IBTreeNode
deleteKeyAndValueAt, deleteKeyForLeafNode, extractRightPart, getBTree, getDegree, getKeyAndValueAt, getKeyAt, getLastChild, getLastKeyAndValue, getLastPositionChild, getMaxNbChildren, getMedian, getNbChildren, getNbKeys, getPositionOfKey, incrementNbChildren, incrementNbKeys, isFull, isLeaf, mergeWith, removeKeyAndValueAt, setBTree, setKeyAndValueAt, setKeyAndValueAt, setKeyAndValueAt, setKeyAndValueAt, setNbChildren, setNbKeys
-
-
-
-
Constructor Detail
-
ODBBTreeNodeSingle
public ODBBTreeNodeSingle()
-
ODBBTreeNodeSingle
public ODBBTreeNodeSingle(IBTree btree)
-
-
Method Detail
-
getChildAt
public IBTreeNode getChildAt(int index, boolean throwExceptionIfNotExist)
- Specified by:
getChildAtin interfaceIBTreeNode- Specified by:
getChildAtin classAbstractBTreeNode
-
getParent
public IBTreeNode getParent()
- Specified by:
getParentin interfaceIBTreeNode- Specified by:
getParentin classAbstractBTreeNode
-
setChildAt
public void setChildAt(IBTreeNode child, int index)
-
setParent
public void setParent(IBTreeNode node)
- Specified by:
setParentin interfaceIBTreeNode- Specified by:
setParentin classAbstractBTreeNode
-
hasParent
public boolean hasParent()
- Specified by:
hasParentin interfaceIBTreeNode- Specified by:
hasParentin classAbstractBTreeNode
-
getId
public java.lang.Object getId()
-
setId
public void setId(java.lang.Object id)
-
clear
public void clear()
- Specified by:
clearin interfaceIBTreeNode- Overrides:
clearin classAbstractBTreeNode
-
deleteChildAt
public void deleteChildAt(int index)
-
moveChildFromTo
public void moveChildFromTo(int sourceIndex, int destinationIndex, boolean throwExceptionIfDoesNotExist)- Specified by:
moveChildFromToin interfaceIBTreeNode- Specified by:
moveChildFromToin classAbstractBTreeNode
-
setChildAt
public void setChildAt(IBTreeNode node, int childIndex, int indexDestination, boolean throwExceptionIfDoesNotExist)
-
setNullChildAt
public void setNullChildAt(int childIndex)
-
getChildIdAt
public java.lang.Object getChildIdAt(int childIndex, boolean throwExceptionIfDoesNotExist)
-
getParentId
public java.lang.Object getParentId()
- Specified by:
getParentIdin interfaceIBTreeNode- Specified by:
getParentIdin classAbstractBTreeNode
-
getValueAsObjectAt
public java.lang.Object getValueAsObjectAt(int index)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG