|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BtreePageSource
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 |
---|
EntryTypeInfo getPageIdInfo()
BtreePage getPage(byte[] pageId, Btree btree) throws StorageException
pageId
- byte array buffer containing pageIdbtree
- btree to which the page belongs
StorageException
BtreePage newPage(Btree btree) throws StorageException
btree
- btree to which the page belongs
StorageException
BigKeyPage newBigKeyPage(Btree btree) throws StorageException
btree
- btree to which the page belongs
StorageException
BtreePage getRootPage(Btree btree) throws StorageException
btree
- Btree
StorageException
void unpinPage(BtreePage page)
page
- BtreePagevoid unpinPage(BigKeyPage page) throws StorageException
page
- BigKeyPage
StorageException
void dirtyPage(BtreePage page) throws StorageException
page
- BtreePage
StorageException
void setNoPage(byte[] pageId)
pageId
- byte array to be filled inboolean isNoPage(byte[] pageId)
int getPageIdLength()
int getPageSize()
BtreeStorage getStorage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |