public interface RecordDataSerializer
| Modifier and Type | Method and Description |
|---|---|
WALRecord |
readRecord(WALRecord.RecordType type,
ByteBufferBackedDataInput in,
int size)
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, int size) throws IOException, IgniteCheckedException
type from buffer in.type - Record type.in - Buffer to read.size - Record size (0 if unknown).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 Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021