public class RecordDataV1Serializer extends Object implements RecordDataSerializer
| Constructor and Description |
|---|
RecordDataV1Serializer(GridCacheSharedContext cctx) |
| Modifier and Type | Method and Description |
|---|---|
GridCacheSharedContext |
cctx()
Return shared cache context.
|
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 rec,
ByteBuffer buf)
Writes record data to buffer
buf. |
public RecordDataV1Serializer(GridCacheSharedContext cctx)
cctx - Cache shared context.public int size(WALRecord record) throws IgniteCheckedException
size in interface RecordDataSerializerrecord - 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.public GridCacheSharedContext cctx()
Follow @ApacheIgnite
Ignite Fabric : ver. 2.4.0 Release Date : March 5 2018