org.netbeans.mdr.persistence.btreeimpl.btreeindex
Class FixedKeyPage

java.lang.Object
  extended byorg.netbeans.mdr.persistence.btreeimpl.btreeindex.BtreePage
      extended byorg.netbeans.mdr.persistence.btreeimpl.btreeindex.FixedKeyPage
All Implemented Interfaces:
Streamable

public class FixedKeyPage
extends BtreePage

Implementation of a BtreePage with fixed length keys and fixed length data.

Version:
1.0
Author:
Dana Bergen

Field Summary
 
Fields inherited from class org.netbeans.mdr.persistence.btreeimpl.btreeindex.BtreePage
pageBuffer, pageId
 
Constructor Summary
FixedKeyPage()
           
 
Method Summary
 void init(Btree btree, byte[] pageId, byte[] pageBuffer, boolean isNew)
          Initialize a newly-instantiated or recycled FixedKeyPage.
 
Methods inherited from class org.netbeans.mdr.persistence.btreeimpl.btreeindex.BtreePage
compare, compareData, consistencyCheck, dumpPage, dumpPageBuffer, dumpPageEntries, dumpPageHeader, dumpTree, get, getLocation, makeRoot, put, put, read, remove, remove, remove, split, store, uninit, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedKeyPage

public FixedKeyPage()
Method Detail

init

public void init(Btree btree,
                 byte[] pageId,
                 byte[] pageBuffer,
                 boolean isNew)
          throws StorageException
Initialize a newly-instantiated or recycled FixedKeyPage. Note that the isNew parameter pertains to whether a new page is being added to the btree, not to whether this BtreePage object is new or recycled.

Overrides:
init in class BtreePage
Parameters:
btree - btree to which this page belongs
pageId - page ID in byte array
pageBuffer - page buffer
isNew - is this page new to the btree
Throws:
StorageException


Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.