public interface BtreePageSource extends MofidGenerator
| Modifier and Type | Method and Description |
|---|---|
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.
|
getMofidPrefix, getNextMofidEntryTypeInfo getPageIdInfo()
BtreePage getPage(byte[] pageId, Btree btree) throws StorageException
pageId - byte array buffer containing pageIdbtree - btree to which the page belongsStorageExceptionBtreePage newPage(Btree btree) throws StorageException
btree - btree to which the page belongsStorageExceptionBigKeyPage newBigKeyPage(Btree btree) throws StorageException
btree - btree to which the page belongsStorageExceptionBtreePage getRootPage(Btree btree) throws StorageException
btree - BtreeStorageExceptionvoid unpinPage(BtreePage page)
page - BtreePagevoid unpinPage(BigKeyPage page) throws StorageException
page - BigKeyPageStorageExceptionvoid dirtyPage(BtreePage page) throws StorageException
page - BtreePageStorageExceptionvoid setNoPage(byte[] pageId)
pageId - byte array to be filled inboolean isNoPage(byte[] pageId)
int getPageIdLength()
int getPageSize()
BtreeStorage getStorage()
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.