public class OffHeapPageMetaInfoStore extends Object implements PageMetaInfoStore
| Constructor and Description |
|---|
OffHeapPageMetaInfoStore(int capacity,
@Nullable PageLockTrackerManager.MemoryCalculator memCalc) |
| 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 OffHeapPageMetaInfoStore(int capacity,
@Nullable
@Nullable PageLockTrackerManager.MemoryCalculator memCalc)
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.8.1 Release Date : May 21 2020