public interface RecordSerializer
| Modifier and Type | Method and Description |
|---|---|
WALRecord |
readRecord(FileInput in,
WALPointer expPtr)
Loads record from input
|
int |
size(WALRecord record)
Calculates record size in byte including expected wal pointer, CRC and type field
|
int |
version() |
boolean |
writePointer()
Flag to write (or not) wal pointer to record
|
void |
writeRecord(WALRecord record,
ByteBuffer buf) |
int version()
int size(WALRecord record) throws IgniteCheckedException
record - Record.IgniteCheckedExceptionvoid writeRecord(WALRecord record, ByteBuffer buf) throws IgniteCheckedException
record - Entry to write.buf - Buffer.IgniteCheckedExceptionWALRecord readRecord(FileInput in, WALPointer expPtr) throws IOException, IgniteCheckedException
in - Data input to read data from.expPtr - expected WAL pointer for record. Used to validate actual position against expected from the fileIOExceptionIgniteCheckedExceptionboolean writePointer()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.1 Release Date : December 9 2020