public interface ISqlJetPageCache
Modifier and Type | Method and Description |
---|---|
void |
cleanAll()
Mark all dirty list pages as clean Make every page in the cache clean.
|
void |
clear()
Discard the contents of the cache
|
void |
clearSyncFlags()
Clear flags from pages of the page cache
|
void |
close()
Reset and close the cache object
|
void |
drop(ISqlJetPage page)
Remove page from cache
Drop a page from the cache.
|
ISqlJetPage |
fetch(int pageNumber,
boolean createFlag)
Try to obtain a page from the cache.
|
int |
getCachesize()
Get the cache-size for the pager-cache.
|
ISqlJetPage |
getDirtyList()
Get a list of all dirty pages in the cache, sorted by page number
|
int |
getPageCount()
Return the total number of pages stored in the cache
|
int |
getRefCount()
Return the total number of outstanding page references
|
void |
iterate(ISqlJetPageCallback xIter)
Iterate through all pages currently stored in the cache.
|
void |
makeClean(ISqlJetPage page)
Make sure the page is marked as clean.
|
void |
makeDirty(ISqlJetPage page)
Make sure the page is marked as dirty.
|
void |
move(ISqlJetPage page,
int pageNumber)
Change a page number.
|
void |
open(int szPage,
boolean bPurgeable,
ISqlJetPageCallback xStress)
Create a new pager cache.
|
void |
release(ISqlJetPage page)
Dereference a page.
|
void |
setCacheSize(int cacheSize)
Set the suggested cache-size for the pager-cache.
|
void |
setPageSize(int pageSize)
Modify the page-size after the cache has been created.
|
void |
truncate(int pageNumber)
Remove all pages with page numbers more than pageNumber.
|
void open(int szPage, boolean bPurgeable, ISqlJetPageCallback xStress)
szPage
- Size of every pageszExtra
- Extra space associated with each pagebPurgeable
- True if pages are on backing storexDestroy
- Called to destroy a pagexStress
- Call to try to make pages cleanvoid setPageSize(int pageSize)
pageSize
- ISqlJetPage fetch(int pageNumber, boolean createFlag) throws SqlJetException
pgno
- Page number to obtaincreateFlag
- If true, create page if it does not exist alreadySqlJetException
void release(ISqlJetPage page)
page
- SqlJetExceptionRemove
void drop(ISqlJetPage page)
page
- SqlJetExceptionRemove
void makeDirty(ISqlJetPage page)
page
- SqlJetExceptionRemove
void makeClean(ISqlJetPage page)
page
- SqlJetExceptionRemove
void cleanAll()
SqlJetExceptionRemove
void move(ISqlJetPage page, int pageNumber)
page
- pageNumber
- SqlJetExceptionRemove
void truncate(int pageNumber)
pageNumber
- SqlJetExceptionRemove
ISqlJetPage getDirtyList()
void close()
void clearSyncFlags()
SqlJetExceptionRemove
void clear()
int getRefCount()
int getPageCount()
void iterate(ISqlJetPageCallback xIter) throws SqlJetException
xIter
- SqlJetException
int getCachesize()
void setCacheSize(int cacheSize)
cacheSize
- Copyright © 2009-2010 TMate Software Ltd. All Rights Reserved.