jdbm.recman
Class TranslationPage

java.lang.Object
  extended by jdbm.recman.PageHeader
      extended by jdbm.recman.TranslationPage
All Implemented Interfaces:
BlockView

final class TranslationPage
extends PageHeader

Class describing a page that holds translations from physical rowids to logical rowids. In fact, the page just holds physical rowids - the page's block is the block for the logical rowid, the offset serve as offset for the rowids.


Field Summary
(package private) static short ELEMS_PER_PAGE
           
(package private) static short O_TRANS
           
(package private)  PhysicalRowId[] slots
           
 
Fields inherited from class jdbm.recman.PageHeader
block, SIZE
 
Constructor Summary
TranslationPage(BlockIo block)
          Constructs a data page view from the indicated block.
 
Method Summary
(package private)  PhysicalRowId get(short offset)
          Returns the value of the indicated rowid on the page
(package private) static TranslationPage getTranslationPageView(BlockIo block)
          Factory method to create or return a data page for the indicated block.
 
Methods inherited from class jdbm.recman.PageHeader
getMagic, getNext, getPrev, getView, paranoiaMagicOk, setNext, setPrev, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

O_TRANS

static final short O_TRANS
See Also:
Constant Field Values

ELEMS_PER_PAGE

static final short ELEMS_PER_PAGE
See Also:
Constant Field Values

slots

final PhysicalRowId[] slots
Constructor Detail

TranslationPage

TranslationPage(BlockIo block)
Constructs a data page view from the indicated block.

Method Detail

getTranslationPageView

static TranslationPage getTranslationPageView(BlockIo block)
Factory method to create or return a data page for the indicated block.


get

PhysicalRowId get(short offset)
Returns the value of the indicated rowid on the page



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