Constructor and Description |
---|
DefaultMetaStore() |
Modifier and Type | Method and Description |
---|---|
void |
addPage(PageId pageId,
PageInfo pageInfo)
Adds a new page to the cache.
|
long |
bytes() |
PageInfo |
getPageInfo(PageId pageId) |
boolean |
hasPage(PageId pageId) |
long |
pages() |
void |
removePage(PageId pageId)
Removes a page.
|
void |
reset()
Resets the meta store.
|
public 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()
Copyright © 2023. All Rights Reserved.