public interface MetaStore
Modifier and Type | Method and Description |
---|---|
void |
addPage(PageId pageId,
PageInfo pageInfo)
Adds a new page to the cache.
|
long |
bytes() |
static MetaStore |
create() |
PageInfo |
getPageInfo(PageId pageId) |
boolean |
hasPage(PageId pageId) |
long |
pages() |
void |
removePage(PageId pageId)
Removes a page.
|
void |
reset()
Resets the meta store.
|
static MetaStore create()
boolean hasPage(PageId pageId)
pageId
- page identifiervoid addPage(PageId pageId, PageInfo pageInfo)
pageId
- page identifierpageInfo
- info of the pagePageInfo getPageInfo(PageId pageId) throws PageNotFoundException
pageId
- page identifierPageNotFoundException
void removePage(PageId pageId) throws PageNotFoundException
pageId
- page identifierPageNotFoundException
long bytes()
long pages()
void reset()
Copyright © 2023. All Rights Reserved.