Modifier and Type | Field and Description |
---|---|
(package private) static int |
NROOTS
The number of "root" rowids available in the file.
|
Constructor and Description |
---|
FileHeader(BlockIo block,
boolean isNew)
Constructs a FileHeader object from a block.
|
Modifier and Type | Method and Description |
---|---|
(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.
|
static final int NROOTS
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.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(int)
,
NROOTS
Cees de Groot (C) 2000-2001. All rights reserved http://jdbm.sourceforge.net