jdbm.recman
Class PhysicalRowId

java.lang.Object
  extended by jdbm.recman.PhysicalRowId
Direct Known Subclasses:
FreePhysicalRowId

 class PhysicalRowId
extends java.lang.Object

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

SIZE

static final int SIZE
See Also:
Constant Field Values

block

BlockIo block

pos

short pos
Constructor Detail

PhysicalRowId

PhysicalRowId(BlockIo block,
              short pos)
Constructs a physical rowid from the indicated data starting at the indicated position.

Method Detail

getBlock

long getBlock()
Returns the block number


setBlock

void setBlock(long value)
Sets the block number


getOffset

short getOffset()
Returns the offset


setOffset

void setOffset(short value)
Sets the offset



Cees de Groot (C) 2000-2001. All rights reserved http://jdbm.sourceforge.net