Constructor and Description |
---|
DefaultMetaStore(CacheEvictor evictor) |
Modifier and Type | Method and Description |
---|---|
void |
addPage(PageId pageId,
PageInfo pageInfo)
Adds a new page to the cache.
|
long |
bytes() |
PageInfo |
evict() |
PageInfo |
getPageInfo(PageId pageId) |
boolean |
hasPage(PageId pageId) |
long |
pages() |
void |
removePage(PageId pageId)
Removes a page.
|
void |
reset()
Resets the meta store.
|
public DefaultMetaStore(CacheEvictor evictor)
evictor
- cache evictorpublic boolean hasPage(PageId pageId)
public void addPage(PageId pageId, PageInfo pageInfo)
MetaStore
public PageInfo getPageInfo(PageId pageId) throws PageNotFoundException
getPageInfo
in interface MetaStore
pageId
- page identifierPageNotFoundException
public void removePage(PageId pageId) throws PageNotFoundException
MetaStore
removePage
in interface MetaStore
pageId
- page identifierPageNotFoundException
public long bytes()
public long pages()
public void reset()
MetaStore
Copyright © 2023. All Rights Reserved.