|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrossi.fstools.fs.reiserfs.FBlock
rossi.fstools.fs.reiserfs.InternalNode
Representation of an internal node of the B+Tree. Following the block header (at offset 0x18), is an array of N Keys, followed by an array of (N+1) DiskChild pointers. The remainder of the block is free space.
| Field Summary | |
protected byte[] |
freeSpaceData
|
protected Key[] |
keys
|
protected DiskChild[] |
ptrs
|
| Fields inherited from class rossi.fstools.fs.reiserfs.FBlock |
blocknum, freeSpace, level, numItems, parent, reserved, rightKey, sb |
| Constructor Summary | |
InternalNode(ReiserSuperBlock sb,
int blocknum)
Create an internal node. |
|
| Method Summary | |
byte[] |
getFreeSpaceData()
Get the free space in this node. |
Key[] |
getKeys()
Get the keys contained in this internal node. |
DiskChild |
getPointerForKey(Key k)
Convieince method for searching the tree. |
DiskChild[] |
getPtrs()
Get the disk child pointers in this node. |
void |
loadFromBuffer(byte[] buffer,
int offset)
Load this structure from disk. |
void |
setFreeSpaceData(byte[] aFreeSpace)
|
void |
setKeys(Key[] aKeys)
|
void |
setPtrs(DiskChild[] aPtrs)
|
| Methods inherited from class rossi.fstools.fs.reiserfs.FBlock |
createFromBuffer, getBlockHeaderSize, getBlockNum, getDataSize, getFreeSpace, getLevel, getNumItems, getParent, getReserved, getRightKey, getSuperBlock, setFreeSpace, setLevel, setNumItems, setParent, setReserved, setRightKey |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Key[] keys
protected DiskChild[] ptrs
protected byte[] freeSpaceData
| Constructor Detail |
public InternalNode(ReiserSuperBlock sb,
int blocknum)
sb - ReiserSuperBlock - superblock of this filesystemblocknum - block number of this block| Method Detail |
public Key[] getKeys()
public void setKeys(Key[] aKeys)
public DiskChild[] getPtrs()
public void setPtrs(DiskChild[] aPtrs)
public byte[] getFreeSpaceData()
public void setFreeSpaceData(byte[] aFreeSpace)
public DiskChild getPointerForKey(Key k)
public void loadFromBuffer(byte[] buffer,
int offset)
throws FsException
FBlock
loadFromBuffer in interface DiskStructureloadFromBuffer in class FBlockFsException - if a parse error occursDiskStructure.loadFromBuffer(byte[], int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||