public interface PageReadWriteManager
| 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.
|
PageStore |
write(int grpId,
long pageId,
ByteBuffer pageBuf,
int tag,
boolean calculateCrc)
Writes the page for the given cache ID.
|
void read(int grpId,
long pageId,
ByteBuffer pageBuf,
boolean keepCrc)
throws IgniteCheckedException
0 if the page is a meta page.grpId - Cache group ID.pageId - PageID to read.pageBuf - Page buffer to write to.keepCrc - Keep CRC flag.IgniteCheckedException - If failed to read the page.PageStore write(int grpId, long pageId, ByteBuffer pageBuf, int tag, boolean calculateCrc) throws IgniteCheckedException
0 if the page is a meta page.grpId - Cache group ID.pageId - Page ID.pageBuf - Page buffer to write.IgniteCheckedException - If failed to write page.long allocatePage(int grpId,
int partId,
byte flags)
throws IgniteCheckedException
grpId - 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