public class PageReadWriteManagerImpl extends Object implements PageReadWriteManager
| Modifier and Type | Field and Description |
|---|---|
protected PageStoreCollection |
pageStores |
| Constructor and Description |
|---|
PageReadWriteManagerImpl(GridKernalContext ctx,
PageStoreCollection pageStores,
String name) |
| Modifier and Type | Method and Description |
|---|---|
long |
allocatePage(int grpId,
int partId,
byte flags)
Allocates a page for the given page space.
|
void |
read(int grpId,
long pageId,
ByteBuffer pageBuf,
boolean keepCrc)
Reads a page for the given cache ID.
|
String |
toString() |
PageStore |
write(int grpId,
long pageId,
ByteBuffer pageBuf,
int tag,
boolean calculateCrc)
Writes the page for the given cache ID.
|
@GridToStringExclude protected final PageStoreCollection pageStores
public PageReadWriteManagerImpl(GridKernalContext ctx, PageStoreCollection pageStores, String name)
ctx - Kernal context.pageStores - Page stores.public void read(int grpId,
long pageId,
ByteBuffer pageBuf,
boolean keepCrc)
throws IgniteCheckedException
0 if the page is a meta page.read in interface PageReadWriteManagergrpId - Cache group ID.pageId - PageID to read.pageBuf - Page buffer to write to.keepCrc - Keep CRC flag.IgniteCheckedException - If failed to read the page.public PageStore write(int grpId, long pageId, ByteBuffer pageBuf, int tag, boolean calculateCrc) throws IgniteCheckedException
0 if the page is a meta page.write in interface PageReadWriteManagergrpId - Cache group ID.pageId - Page ID.pageBuf - Page buffer to write.IgniteCheckedException - If failed to write page.public long allocatePage(int grpId,
int partId,
byte flags)
throws IgniteCheckedException
allocatePage in interface PageReadWriteManagergrpId - Cache group ID.partId - Partition ID. Used only if flags is equal to PageIdAllocator.FLAG_DATA.flags - Page allocation flags.IgniteCheckedException - If IO exception occurred while allocating a page ID.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021