
public class OPassthroughPageCache extends Object implements OPageCache
| Constructor and Description |
|---|
OPassthroughPageCache(OReadCache readCache)
Constructs a new passthrough page cache instance.
|
| 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.
|
public OPassthroughPageCache(OReadCache readCache)
readCache - the underlying read cache.public OCacheEntry loadPage(long fileId, long pageIndex, boolean checkPinnedPages, OWriteCache writeCache, int pageCount) throws IOException
OPageCacheloadPage in interface OPageCachefileId - 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)public void releasePage(OCacheEntry cacheEntry, OWriteCache writeCache)
OPageCachereleasePage in interface OPageCachecacheEntry - the page to release.writeCache - the underlying write cache instance.OReadCache.release(OCacheEntry, OWriteCache)public void releaseFilePages(long fileId,
OWriteCache writeCache)
OPageCachereleaseFilePages in interface OPageCachefileId - the file id of the file.writeCache - the underlying write cache instance.public OCacheEntry purgePage(long fileId, long pageIndex, OWriteCache writeCache)
OPageCacheread 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.purgePage in interface OPageCachefileId - 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.public void reset(OWriteCache writeCache)
OPageCachereset in interface OPageCachewriteCache - the underlying write cache instance.Copyright © 2009–2025 OrientDB. All rights reserved.