public interface RecordSerializerFactory
RecordSerializer
.Modifier and Type | Field and Description |
---|---|
static int |
LATEST_SERIALIZER_VERSION
Latest serializer version to use.
|
Modifier and Type | Method and Description |
---|---|
RecordSerializer |
createSerializer(int ver)
Factory method for creation
RecordSerializer . |
RecordSerializerFactory |
marshalledMode(boolean marshalledMode)
If marshalledMode is on, created serializer will read
MarshalledRecord with raw binary data instead of
actual record. |
RecordSerializerFactory |
recordDeserializeFilter(IgniteBiPredicate<WALRecord.RecordType,WALPointer> readTypeFilter)
Specifies deserialization filter.
|
RecordSerializerFactory |
skipPositionCheck(boolean skipPositionCheck)
If skipPositionCheck is true, created serializer won't check that actual position of record in file is equal to
position in saved record's
WALPointer . |
RecordSerializerFactory |
writePointer(boolean writePointer)
TODO: This flag was added under IGNITE-6029, but still unused.
|
static final int LATEST_SERIALIZER_VERSION
RecordSerializer createSerializer(int ver) throws IgniteCheckedException
RecordSerializer
.ver
- Serializer version.IgniteCheckedException
RecordSerializerFactory writePointer(boolean writePointer)
writePointer
- Write pointer flag.RecordSerializerFactory recordDeserializeFilter(IgniteBiPredicate<WALRecord.RecordType,WALPointer> readTypeFilter)
FilteredRecord
instead of actual
record if record type/pointer doesn't satisfy filter.readTypeFilter
- Read type filter.RecordSerializerFactory marshalledMode(boolean marshalledMode)
MarshalledRecord
with raw binary data instead of
actual record.
Useful for copying binary data from WAL.marshalledMode
- Marshalled mode.RecordSerializerFactory skipPositionCheck(boolean skipPositionCheck)
WALPointer
.
Must be true if we are reading from compacted WAL segment.skipPositionCheck
- Skip position check.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021