|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjdbm.recman.PhysicalRowId
class PhysicalRowId
A physical rowid is nothing else than a pointer to a physical location in a file - a (block, offset) tuple.
Note: The fact that the offset is modelled as a short limits the block size to 32k.
Field Summary | |
---|---|
(package private) BlockIo |
block
|
(package private) short |
pos
|
(package private) static int |
SIZE
|
Constructor Summary | |
---|---|
PhysicalRowId(BlockIo block,
short pos)
Constructs a physical rowid from the indicated data starting at the indicated position. |
Method Summary | |
---|---|
(package private) long |
getBlock()
Returns the block number |
(package private) short |
getOffset()
Returns the offset |
(package private) void |
setBlock(long value)
Sets the block number |
(package private) void |
setOffset(short value)
Sets the offset |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final int SIZE
BlockIo block
short pos
Constructor Detail |
---|
PhysicalRowId(BlockIo block, short pos)
Method Detail |
---|
long getBlock()
void setBlock(long value)
short getOffset()
void setOffset(short value)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |