
public interface OPageCache
OReadCache and OWriteCache instances.| Modifier and Type | Method and Description |
|---|---|
OCacheEntry |
loadPage(long fileId,
long pageIndex,
boolean checkPinnedPages,
OWriteCache writeCache,
int pageCount)
Loads the page.
|
OCacheEntry |
purgePage(long fileId,
long pageIndex,
OWriteCache writeCache)
Purges the page from this page cache, but not from the underlying
read cache. |
void |
releaseFilePages(long fileId,
OWriteCache writeCache)
Releases the pages associated with the given file.
|
void |
releasePage(OCacheEntry cacheEntry,
OWriteCache writeCache)
Releases the page.
|
void |
reset(OWriteCache writeCache)
Resets this page cache by releasing all cached pages.
|
OCacheEntry loadPage(long fileId, long pageIndex, boolean checkPinnedPages, OWriteCache writeCache, int pageCount) throws IOException
fileId - the page's file id to load from.pageIndex - the page's index in the file.checkPinnedPages - true to inspect the pinned pages in the underlying OReadCache, false to skip
them.writeCache - the underlying write cache.pageCount - the number of pages to load.null if page is not found neither in this page cache nor underlying OReadCache.IOException - if there was an I/O error.OReadCache#load(long, long, boolean, OWriteCache, int)void releasePage(OCacheEntry cacheEntry, OWriteCache writeCache)
cacheEntry - the page to release.writeCache - the underlying write cache instance.OReadCache.release(OCacheEntry, OWriteCache)void releaseFilePages(long fileId,
OWriteCache writeCache)
fileId - the file id of the file.writeCache - the underlying write cache instance.OCacheEntry purgePage(long fileId, long pageIndex, OWriteCache writeCache)
read cache. On return, there are no
references to the purged page in a context of this page cache, but the page is still present in the underlying read cache.fileId - the page's file id.pageIndex - the page's index in the file.writeCache - the underlying write cache instance.null if the page is not cached by this page cache.void reset(OWriteCache writeCache)
writeCache - the underlying write cache instance.Copyright © 2009–2025 OrientDB. All rights reserved.