public interface RecordDataSerializer
| Modifier and Type | Method and Description |
|---|---|
WALRecord |
readRecord(WALRecord.RecordType type,
ByteBufferBackedDataInput in)
Reads record data of
type from buffer in. |
int |
size(WALRecord record)
Calculates size of record data.
|
void |
writeRecord(WALRecord record,
ByteBuffer buf)
Writes record data to buffer
buf. |
int size(WALRecord record) throws IgniteCheckedException
record - WAL record.IgniteCheckedException - If it's unable to calculate record data size.WALRecord readRecord(WALRecord.RecordType type, ByteBufferBackedDataInput in) throws IOException, IgniteCheckedException
type from buffer in.type - Record type.in - Buffer to read.IOException - In case of I/O problems.IgniteCheckedException - If it's unable to read record.void writeRecord(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 Fabric : ver. 2.5.0 Release Date : May 23 2018