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

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

public class VarKeyPage
extends BtreePage

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


Field Summary
 
Fields inherited from class org.netbeans.mdr.persistence.btreeimpl.btreeindex.BtreePage
pageBuffer, pageId
 
Constructor Summary
VarKeyPage()
           
 
Method Summary
 void dumpPageHeader(java.io.PrintWriter out)
          Print BtreePage header for debugging.
 void init(Btree btree, byte[] pageId, byte[] pageBuffer, boolean isNew)
          Initialize a newly-instantiated or recycled VarKeyPage.
 void store()
          Write VarKeyPage header data to the page buffer.
 
Methods inherited from class org.netbeans.mdr.persistence.btreeimpl.btreeindex.BtreePage
compare, compareData, consistencyCheck, dumpPage, dumpPageBuffer, dumpPageEntries, 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

VarKeyPage

public VarKeyPage()
Method Detail

init

public void init(Btree btree,
                 byte[] pageId,
                 byte[] pageBuffer,
                 boolean isNew)
          throws StorageException
Initialize a newly-instantiated or recycled VarKeyPage. 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 VarKeyPage header data to the page buffer.

Overrides:
store in class BtreePage

dumpPageHeader

public void dumpPageHeader(java.io.PrintWriter out)
Description copied from class: BtreePage
Print BtreePage header for debugging.

Overrides:
dumpPageHeader in class BtreePage
Parameters:
out - PrintWriter to print to


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