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

java.lang.Object
  extended by org.netbeans.mdr.persistence.btreeimpl.btreeindex.BtreePage
      extended by org.netbeans.mdr.persistence.btreeimpl.btreeindex.VarRecordPage
All Implemented Interfaces:
Streamable

public class VarRecordPage
extends BtreePage

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


Field Summary
 
Fields inherited from class org.netbeans.mdr.persistence.btreeimpl.btreeindex.BtreePage
pageBuffer, pageId
 
Constructor Summary
VarRecordPage()
           
 
Method Summary
 void init(Btree btree, byte[] pageId, byte[] pageBuffer, boolean isNew)
          Initialize a newly-instantiated or recycled BtreePage.
 void store()
          Write VarRecordPage header data to the page buffer.
 
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, uninit, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VarRecordPage

public VarRecordPage()
Method Detail

init

public void init(Btree btree,
                 byte[] pageId,
                 byte[] pageBuffer,
                 boolean isNew)
          throws StorageException
Description copied from class: BtreePage
Initialize a newly-instantiated or recycled BtreePage. 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

store

public void store()
Write VarRecordPage header data to the page buffer.

Overrides:
store in class BtreePage


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