public class DefaultMetaStore extends Object implements MetaStore
Constructor and Description |
---|
DefaultMetaStore(AlluxioConfiguration conf) |
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() |
PageInfo |
removePage(PageId pageId)
Removes a page.
|
void |
reset()
Resets the meta store.
|
public DefaultMetaStore(AlluxioConfiguration conf)
conf
- configurationpublic 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 PageInfo 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.