public interface PageMetaStore
Modifier and Type | Method and Description |
---|---|
void |
addPage(PageId pageId,
PageInfo pageInfo)
Adds a new page to the cache.
|
long |
bytes() |
static PageMetaStore |
create(AlluxioConfiguration conf) |
PageInfo |
evict(CacheScope cacheScope,
PageStoreDir pageStoreDir) |
default PageInfo |
evict(PageStoreDir pageStoreDir) |
ReadWriteLock |
getLock() |
PageInfo |
getPageInfo(PageId pageId) |
Iterator<PageId> |
getPagesIterator()
Gets an iterator over the pages currently stored in this metastore.
|
List<PageStoreDir> |
getStoreDirs()
Gets the storage directories.
|
boolean |
hasPage(PageId pageId) |
long |
numPages() |
PageInfo |
removePage(PageId pageId)
Removes a page.
|
void |
reset()
Resets the meta store.
|
static PageMetaStore create(AlluxioConfiguration conf) throws IOException
conf
- the alluxio configurationIOException
ReadWriteLock getLock()
boolean hasPage(PageId pageId)
pageId
- page identifiervoid addPage(PageId pageId, PageInfo pageInfo)
pageId
- page identifierpageInfo
- info of the pageIterator<PageId> getPagesIterator()
List<PageStoreDir> getStoreDirs()
PageInfo getPageInfo(PageId pageId) throws PageNotFoundException
pageId
- page identifierPageNotFoundException
PageInfo removePage(PageId pageId) throws PageNotFoundException
pageId
- page identifierPageNotFoundException
long bytes()
long numPages()
void reset()
default PageInfo evict(PageStoreDir pageStoreDir)
pageStoreDir
- PageInfo evict(CacheScope cacheScope, PageStoreDir pageStoreDir)
cacheScope
- pageStoreDir
- Copyright © 2023. All Rights Reserved.