@NotStorableClass public class HeapIdNode extends AbstractHeapRBTNode<DataRecordIdentifier>
HeapRecord
HeapRecord
Modifier and Type | Field and Description |
---|---|
DataRecordIdentifier |
nodeIdentifier
this node identifier. public is bad smell but this done for optimization
|
color, colorSetted, heapElementManager, index, leftPositionInFile, numberOfChild, parentPositionInFile, rightPositionInFile, valueChanged
Constructor and Description |
---|
HeapIdNode(IHeapElementManager heapElementManager,
long positionInFile,
long parentPositionInFile,
long leftPositionInFile,
long rightPositionInFile,
boolean colorSetted,
boolean color,
int numberOfChild,
DataRecordIdentifier nodeIdentifier) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(DataRecordIdentifier element) |
int |
compareTo(IRBTComparableNode<DataRecordIdentifier> node) |
boolean |
equals(Object obj) |
DataRecordIdentifier |
getElement()
get the element of this node
|
protected AbstractHeapRBTNode<DataRecordIdentifier> |
heapNode(HeapRecord heapRecord)
get the heap node from the heap record from heap file, depending of heap
tree it is not at same location on heap record.
|
void |
setElement(DataRecordIdentifier element)
set this node element
|
String |
toString() |
accept, decrementNumberOfChild, detach, getColor, getHeapRecord, getIndex, getLeft, getLeftPositionInFile, getNumberOfChild, getParent, getParentPositionInFile, getPositionInFile, getRight, getRightPositionInFile, hashCode, incrementNumberOfChild, isAttached, isBlack, isColorSetted, isRed, isSentinel, isValueChanged, setBlack, setColor, setIndex, setLeft, setLeftPositionInFile, setNumberOfChild, setParent, setParentPositionInFile, setRed, setRight, setRightPositionInFile, valueSetted
public final DataRecordIdentifier nodeIdentifier
public HeapIdNode(IHeapElementManager heapElementManager, long positionInFile, long parentPositionInFile, long leftPositionInFile, long rightPositionInFile, boolean colorSetted, boolean color, int numberOfChild, DataRecordIdentifier nodeIdentifier)
public int compareTo(IRBTComparableNode<DataRecordIdentifier> node)
public int compareTo(DataRecordIdentifier element) throws RBTException
RBTException
public DataRecordIdentifier getElement()
IRBTNode
public void setElement(DataRecordIdentifier element) throws RBTException
IRBTNode
element
- the element to set for this nodeRBTException
protected AbstractHeapRBTNode<DataRecordIdentifier> heapNode(HeapRecord heapRecord) throws RBTException
AbstractHeapRBTNode
heapNode
in class AbstractHeapRBTNode<DataRecordIdentifier>
heapRecord
- the heap recordRBTException
public String toString()
toString
in class AbstractHeapRBTNode<DataRecordIdentifier>
public boolean equals(Object obj)
equals
in class AbstractHeapRBTNode<DataRecordIdentifier>
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.