public interface RecordIO
| Modifier and Type | Method and Description |
|---|---|
WALRecord |
readWithHeaders(ByteBufferBackedDataInput in,
WALPointer expPtr)
Reads record data with headers from
in. |
int |
sizeWithHeaders(WALRecord record)
Calculates and returns size of record data and headers.
|
void |
writeWithHeaders(WALRecord record,
ByteBuffer buf)
Writes record data with headers to
buf. |
int sizeWithHeaders(WALRecord record) throws IgniteCheckedException
record - WAL record.IgniteCheckedException - If it's unable to calculate size of record.WALRecord readWithHeaders(ByteBufferBackedDataInput in, WALPointer expPtr) throws IOException, IgniteCheckedException
in.in - Buffer to read.expPtr - Expected WAL pointer for record. Used to validate actual position against expected from the file.IOException - In case of I/O problems.IgniteCheckedException - If it's unable to read record.void writeWithHeaders(WALRecord record, ByteBuffer buf) throws IgniteCheckedException
buf.record - WAL record.buf - Buffer to write.IgniteCheckedException - If it's unable to write record.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.1 Release Date : December 20 2021