public class BtreeMDRSource extends java.lang.Object implements BtreePageSource
| Constructor and Description |
|---|
BtreeMDRSource(BtreeStorage storage,
int pageSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
dirtyPage(BtreePage page)
Notify the BtreePageSource that the caller is going to modify this page.
|
java.lang.String |
getMofidPrefix()
Get the prefix for this repository
|
long |
getNextMofid()
get the next unique ID for this repository
|
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 contains the special value noPageId
|
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)
Set the passed-in pageId to contain the special value noPageId
|
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.
|
public BtreeMDRSource(BtreeStorage storage, int pageSize) throws StorageException
StorageExceptionpublic BigKeyPage newBigKeyPage(Btree btree) throws StorageException
BtreePageSourcenewBigKeyPage in interface BtreePageSourcebtree - btree to which the page belongsStorageExceptionpublic BtreePage newPage(Btree btree) throws StorageException
BtreePageSourcenewPage in interface BtreePageSourcebtree - btree to which the page belongsStorageExceptionpublic BtreePage getPage(byte[] pageId, Btree btree) throws StorageException
BtreePageSourcegetPage in interface BtreePageSourcepageId - byte array buffer containing pageIdbtree - btree to which the page belongsStorageExceptionpublic BtreePage getRootPage(Btree btree) throws StorageException
BtreePageSourcegetRootPage in interface BtreePageSourcebtree - BtreeStorageExceptionpublic void unpinPage(BtreePage page)
BtreePageSourceunpinPage in interface BtreePageSourcepage - BtreePagepublic void unpinPage(BigKeyPage page)
BtreePageSourceunpinPage in interface BtreePageSourcepage - BigKeyPagepublic void dirtyPage(BtreePage page) throws StorageException
BtreePageSourcedirtyPage in interface BtreePageSourcepage - BtreePageStorageExceptionpublic EntryTypeInfo getPageIdInfo()
BtreePageSourcegetPageIdInfo in interface BtreePageSourcepublic int getPageIdLength()
BtreePageSourcegetPageIdLength in interface BtreePageSourcepublic int getPageSize()
BtreePageSourcegetPageSize in interface BtreePageSourcepublic void setNoPage(byte[] pageId)
setNoPage in interface BtreePageSourcepageId - byte array to be filled inpublic boolean isNoPage(byte[] pageId)
isNoPage in interface BtreePageSourcepublic long getNextMofid()
getNextMofid in interface MofidGeneratorpublic java.lang.String getMofidPrefix()
getMofidPrefix in interface MofidGeneratorpublic BtreeStorage getStorage()
getStorage in interface BtreePageSourceCopyright © 2005-2012 Apache Software Foundation. All Rights Reserved.