| java.lang.Object jdbm.recman.FileHeader
FileHeader | class FileHeader implements BlockView(Code) | | 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 | |
final static int | NROOTS The number of "root" rowids available in the file. |
Constructor Summary | |
| FileHeader(BlockIo block, boolean isNew) Constructs a FileHeader object from a block. |
NROOTS | final static int NROOTS(Code) | | The number of "root" rowids available in the file.
|
FileHeader | FileHeader(BlockIo block, boolean isNew)(Code) | | Constructs a FileHeader object from a block.
Parameters: block - The block that contains the file header Parameters: isNew - If true, the file header is for a new file. throws: IOException - if the block is too short to keep the fileheader. |
getFirstOf | long getFirstOf(int list)(Code) | | Returns the first block of the indicated list
|
getLastOf | long getLastOf(int list)(Code) | | Returns the last block of the indicated list
|
getRoot | long getRoot(int root)(Code) | | Returns the indicated root rowid. A root rowid is a special rowid
that needs to be kept between sessions. It could conceivably be
stored in a special file, but as a large amount of space in the
block header is wasted anyway, it's more useful to store it where
it belongs.
See Also: FileHeader.NROOTS |
setFirstOf | void setFirstOf(int list, long value)(Code) | | Sets the first block of the indicated list
|
setLastOf | void setLastOf(int list, long value)(Code) | | Sets the last block of the indicated list
|
|
|