|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.mdr.persistence.btreeimpl.btreestorage.BtreeMDRSource
public class BtreeMDRSource
BtreePageSource whose pages are MOF repository objects
Constructor Summary | |
---|---|
BtreeMDRSource(BtreeStorage storage,
int pageSize)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BtreeMDRSource(BtreeStorage storage, int pageSize) throws StorageException
StorageException
Method Detail |
---|
public BigKeyPage newBigKeyPage(Btree btree) throws StorageException
BtreePageSource
newBigKeyPage
in interface BtreePageSource
btree
- btree to which the page belongs
StorageException
public BtreePage newPage(Btree btree) throws StorageException
BtreePageSource
newPage
in interface BtreePageSource
btree
- btree to which the page belongs
StorageException
public BtreePage getPage(byte[] pageId, Btree btree) throws StorageException
BtreePageSource
getPage
in interface BtreePageSource
pageId
- byte array buffer containing pageIdbtree
- btree to which the page belongs
StorageException
public BtreePage getRootPage(Btree btree) throws StorageException
BtreePageSource
getRootPage
in interface BtreePageSource
btree
- Btree
StorageException
public void unpinPage(BtreePage page)
BtreePageSource
unpinPage
in interface BtreePageSource
page
- BtreePagepublic void unpinPage(BigKeyPage page)
BtreePageSource
unpinPage
in interface BtreePageSource
page
- BigKeyPagepublic void dirtyPage(BtreePage page) throws StorageException
BtreePageSource
dirtyPage
in interface BtreePageSource
page
- BtreePage
StorageException
public EntryTypeInfo getPageIdInfo()
BtreePageSource
getPageIdInfo
in interface BtreePageSource
public int getPageIdLength()
BtreePageSource
getPageIdLength
in interface BtreePageSource
public int getPageSize()
BtreePageSource
getPageSize
in interface BtreePageSource
public void setNoPage(byte[] pageId)
setNoPage
in interface BtreePageSource
pageId
- byte array to be filled inpublic boolean isNoPage(byte[] pageId)
isNoPage
in interface BtreePageSource
public long getNextMofid()
getNextMofid
in interface MofidGenerator
public java.lang.String getMofidPrefix()
getMofidPrefix
in interface MofidGenerator
public BtreeStorage getStorage()
getStorage
in interface BtreePageSource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |