public class HeapPageMetaInfoStore extends Object implements PageMetaInfoStore
| Constructor and Description |
|---|
HeapPageMetaInfoStore(int capacity,
@Nullable PageLockTrackerManager.MemoryCalculator memoryCalc) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int itemIdx,
int op,
int structureId,
long pageId,
long pageAddrHeader,
long pageAddr)
Add page to store.
|
int |
capacity() |
PageMetaInfoStore |
copy() |
void |
free()
Free resource.
|
int |
getOperation(int itemIdx) |
long |
getPageAddr(int itemIdx) |
long |
getPageAddrHeader(int itemIdx) |
long |
getPageId(int itemIdx) |
int |
getStructureId(int itemIdx) |
boolean |
isEmpty() |
void |
remove(int itemIdx)
Remove page from store by index.
|
public HeapPageMetaInfoStore(int capacity,
@Nullable
@Nullable PageLockTrackerManager.MemoryCalculator memoryCalc)
public int capacity()
capacity in interface PageMetaInfoStorepublic boolean isEmpty()
isEmpty in interface PageMetaInfoStorepublic void add(int itemIdx,
int op,
int structureId,
long pageId,
long pageAddrHeader,
long pageAddr)
add in interface PageMetaInfoStoreitemIdx - Index of page in store.op - Page operation.structureId - Data structure id.pageId - Page id.pageAddrHeader - Page header addres.pageAddr - Page addres.public void remove(int itemIdx)
remove in interface PageMetaInfoStorepublic int getOperation(int itemIdx)
getOperation in interface PageMetaInfoStoreitemIdx - Index of page in store.public int getStructureId(int itemIdx)
getStructureId in interface PageMetaInfoStoreitemIdx - Index of page in store.public long getPageId(int itemIdx)
getPageId in interface PageMetaInfoStoreitemIdx - Index of page in store.public long getPageAddrHeader(int itemIdx)
getPageAddrHeader in interface PageMetaInfoStoreitemIdx - Index of page in store.public long getPageAddr(int itemIdx)
getPageAddr in interface PageMetaInfoStoreitemIdx - Index of page in store.public PageMetaInfoStore copy()
copy in interface PageMetaInfoStorepublic void free()
free in interface PageMetaInfoStore
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020