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() |
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 fileIOExceptionIgniteCheckedException
Follow @ApacheIgnite
Ignite Fabric : ver. 2.1.0 Release Date : July 20 2017