E
- type of element of RBT node@NotStorableClass public abstract class AbstractGarbageRBTNodeManager<E> extends Object implements IRBTNodeManager<E>
IHeapRecordable
and IRBTNode
managementIRBTNode
implementation and heap recordable managementModifier and Type | Field and Description |
---|---|
protected HelperBinaryConversion |
helperBinaryConversion |
protected JoafipLogger |
logger |
protected StoreHeader |
storeHeader |
Modifier | Constructor and Description |
---|---|
protected |
AbstractGarbageRBTNodeManager(StoreHeader storeHeader,
HeapRecordableManager heapRecordableManager,
HelperBinaryConversion helperBinaryConversion) |
Modifier and Type | Method and Description |
---|---|
IRBTNode<E> |
getRootNode() |
protected abstract DataRecordIdentifier |
getRootNodeIdentifier() |
protected abstract IHeapRecordable |
newIHeapRecordableRBTNode(HeapRecordableManager heapRecordableManager) |
void |
setRootNode(IRBTNode<E> rootNode)
set the root red black tree node
|
protected abstract void |
setRootNodeIdentifier(DataRecordIdentifier dataRecordIdentifier)
set the data record identifier associated to root record
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
newSentinel
protected final JoafipLogger logger
protected final StoreHeader storeHeader
protected HelperBinaryConversion helperBinaryConversion
protected AbstractGarbageRBTNodeManager(StoreHeader storeHeader, HeapRecordableManager heapRecordableManager, HelperBinaryConversion helperBinaryConversion)
public IRBTNode<E> getRootNode() throws RBTException
getRootNode
in interface IRBTNodeManager<E>
RBTException
public void setRootNode(IRBTNode<E> rootNode) throws RBTException
IRBTNodeManager
setRootNode
in interface IRBTNodeManager<E>
rootNode
- the root red black tree nodeRBTException
protected abstract IHeapRecordable newIHeapRecordableRBTNode(HeapRecordableManager heapRecordableManager)
heapRecordableManager
- protected abstract DataRecordIdentifier getRootNodeIdentifier() throws StoreException
StoreException
protected abstract void setRootNodeIdentifier(DataRecordIdentifier dataRecordIdentifier) throws StoreException
dataRecordIdentifier
- the data record identifier associated to root record, can be
null if no root recordStoreException
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.