public class RecordDataV2Serializer extends Object implements RecordDataSerializer
| Constructor and Description |
|---|
RecordDataV2Serializer(RecordDataV1Serializer delegateSerializer)
Create an instance of V2 data serializer.
|
| Modifier and Type | Method and Description |
|---|---|
WALRecord |
readRecord(WALRecord.RecordType type,
ByteBufferBackedDataInput in)
Reads record data of
type from buffer in. |
int |
size(WALRecord rec)
Calculates size of record data.
|
void |
writeRecord(WALRecord rec,
ByteBuffer buf)
Writes record data to buffer
buf. |
public RecordDataV2Serializer(RecordDataV1Serializer delegateSerializer)
delegateSerializer - V1 data serializer.public int size(WALRecord rec) throws IgniteCheckedException
size in interface RecordDataSerializerrec - WAL record.IgniteCheckedException - If it's unable to calculate record data size.public WALRecord readRecord(WALRecord.RecordType type, ByteBufferBackedDataInput in) throws IOException, IgniteCheckedException
type from buffer in.readRecord in interface RecordDataSerializertype - Record type.in - Buffer to read.IOException - In case of I/O problems.IgniteCheckedException - If it's unable to read record.public void writeRecord(WALRecord rec, ByteBuffer buf) throws IgniteCheckedException
buf.writeRecord in interface RecordDataSerializerrec - WAL record.buf - Buffer to write.IgniteCheckedException - If it's unable to write record.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.4.0 Release Date : March 5 2018