|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Source of pages for a Btree.
Method Summary | |
void |
dirtyPage(BtreePage page)
Notify the BtreePageSource that the caller is going to modify this page. |
BtreePage |
getPage(byte[] pageId,
Btree btree)
Retrieve a page. |
EntryTypeInfo |
getPageIdInfo()
Get an EntryTypeInfo for the datatype of this BtreePageSource's page IDs. |
int |
getPageIdLength()
Returns the length of a page ID. |
int |
getPageSize()
Returns the size of a page. |
BtreePage |
getRootPage(Btree btree)
Retrieve the root page for this btree. |
BtreeStorage |
getStorage()
|
boolean |
isNoPage(byte[] pageId)
Test whether the passed-in pageId is equal to the null page ID. |
BigKeyPage |
newBigKeyPage(Btree btree)
Creates a new oversize-key page and returns it. |
BtreePage |
newPage(Btree btree)
Creates a new page and returns it. |
void |
setNoPage(byte[] pageId)
Fills in the provided buffer with a value that represents a null page ID. |
void |
unpinPage(BigKeyPage page)
Notify the BtreePageSource that the caller is done using this page. |
void |
unpinPage(BtreePage page)
Notify the BtreePageSource that the caller is done using this page. |
Methods inherited from interface org.netbeans.mdr.persistence.btreeimpl.btreeindex.MofidGenerator |
getMofidPrefix, getNextMofid |
Method Detail |
public EntryTypeInfo getPageIdInfo()
public BtreePage getPage(byte[] pageId, Btree btree) throws StorageException
pageId
- byte array buffer containing pageIdbtree
- btree to which the page belongs
StorageException
public BtreePage newPage(Btree btree) throws StorageException
btree
- btree to which the page belongs
StorageException
public BigKeyPage newBigKeyPage(Btree btree) throws StorageException
btree
- btree to which the page belongs
StorageException
public BtreePage getRootPage(Btree btree) throws StorageException
btree
- Btree
StorageException
public void unpinPage(BtreePage page)
page
- BtreePagepublic void unpinPage(BigKeyPage page) throws StorageException
page
- BigKeyPage
StorageException
public void dirtyPage(BtreePage page) throws StorageException
page
- BtreePage
StorageException
public void setNoPage(byte[] pageId)
pageId
- byte array to be filled inpublic boolean isNoPage(byte[] pageId)
public int getPageIdLength()
public int getPageSize()
public BtreeStorage getStorage()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |