|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjdbm.recman.FileHeader
This class represents a file header. It is a 1:1 representation of the data that appears in block 0 of a file.
Field Summary | |
(package private) static int |
NROOTS
The number of "root" rowids available in the file. |
Constructor Summary | |
(package private) |
FileHeader(BlockIo block,
boolean isNew)
Constructs a FileHeader object from a block. |
Method Summary | |
(package private) long |
getFirstOf(int list)
Returns the first block of the indicated list |
(package private) long |
getLastOf(int list)
Returns the last block of the indicated list |
(package private) long |
getRoot(int root)
Returns the indicated root rowid. |
(package private) void |
setFirstOf(int list,
long value)
Sets the first block of the indicated list |
(package private) void |
setLastOf(int list,
long value)
Sets the last block of the indicated list |
(package private) void |
setRoot(int root,
long rowid)
Sets the indicated root rowid. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static final int NROOTS
Constructor Detail |
FileHeader(BlockIo block, boolean isNew)
block
- The block that contains the file headerisNew
- If true, the file header is for a new file.
IOException
- if the block is too short to keep the file
header.Method Detail |
long getFirstOf(int list)
void setFirstOf(int list, long value)
long getLastOf(int list)
void setLastOf(int list, long value)
long getRoot(int root)
NROOTS
void setRoot(int root, long rowid)
getRoot
,
NROOTS
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |