@NotStorableClass public class HeapFreeNode extends AbstractHeapRBTNode<Integer>
HeapRecordHeapRecordcolor, colorSetted, heapElementManager, index, leftPositionInFile, numberOfChild, parentPositionInFile, rightPositionInFile, valueChanged| Constructor and Description |
|---|
HeapFreeNode(IHeapElementManager heapElementManager,
long positionInFile,
long parentPositionInFile,
long leftPositionInFile,
long rightPositionInFile,
boolean colorSetted,
boolean color,
int numberOfChild,
int areaSize) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Integer element) |
int |
compareTo(IRBTComparableNode<Integer> node) |
boolean |
equals(Object obj) |
Integer |
getElement()
get the element of this node
|
int |
getRecordSize() |
protected AbstractHeapRBTNode<Integer> |
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 |
setAreaSize(int areaSize) |
void |
setElement(Integer 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, valueSettedpublic HeapFreeNode(IHeapElementManager heapElementManager, long positionInFile, long parentPositionInFile, long leftPositionInFile, long rightPositionInFile, boolean colorSetted, boolean color, int numberOfChild, int areaSize)
public int compareTo(IRBTComparableNode<Integer> node) throws RBTException
RBTExceptionpublic int compareTo(Integer element) throws RBTException
RBTExceptionpublic int getRecordSize()
public void setAreaSize(int areaSize)
protected AbstractHeapRBTNode<Integer> heapNode(HeapRecord heapRecord) throws RBTException
AbstractHeapRBTNodeheapNode in class AbstractHeapRBTNode<Integer>heapRecord - the heap recordRBTExceptionpublic Integer getElement() throws RBTException
IRBTNodeRBTExceptionpublic void setElement(Integer element) throws RBTException
IRBTNodeelement - the element to set for this nodeRBTExceptionpublic String toString()
toString in class AbstractHeapRBTNode<Integer>public boolean equals(Object obj)
equals in class AbstractHeapRBTNode<Integer>Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.