Interface RecordSerializerFactory
-
- All Known Implementing Classes:
RecordSerializerFactoryImpl
public interface RecordSerializerFactoryFactory for creatingRecordSerializer.
-
-
Field Summary
Fields Modifier and Type Field Description static intLATEST_SERIALIZER_VERSIONLatest serializer version to use.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RecordSerializercreateSerializer(int ver)Factory method for creationRecordSerializer.RecordSerializerFactorymarshalledMode(boolean marshalledMode)If marshalledMode is on, created serializer will readMarshalledRecordwith raw binary data instead of actual record.RecordSerializerFactoryrecordDeserializeFilter(IgniteBiPredicate<WALRecord.RecordType,WALPointer> readTypeFilter)Specifies deserialization filter.RecordSerializerFactoryskipPositionCheck(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'sWALPointer.RecordSerializerFactorywritePointer(boolean writePointer)TODO: This flag was added under IGNITE-6029, but still unused.
-
-
-
Field Detail
-
LATEST_SERIALIZER_VERSION
static final int LATEST_SERIALIZER_VERSION
Latest serializer version to use.- See Also:
- Constant Field Values
-
-
Method Detail
-
createSerializer
RecordSerializer createSerializer(int ver) throws IgniteCheckedException
Factory method for creationRecordSerializer.- Parameters:
ver- Serializer version.- Returns:
- record serializer.
- Throws:
IgniteCheckedException
-
writePointer
RecordSerializerFactory writePointer(boolean writePointer)
TODO: This flag was added under IGNITE-6029, but still unused. Should be either handled or removed.- Parameters:
writePointer- Write pointer flag.
-
recordDeserializeFilter
RecordSerializerFactory recordDeserializeFilter(IgniteBiPredicate<WALRecord.RecordType,WALPointer> readTypeFilter)
Specifies deserialization filter. Created serializer will read bulkFilteredRecordinstead of actual record if record type/pointer doesn't satisfy filter.- Parameters:
readTypeFilter- Read type filter.
-
marshalledMode
RecordSerializerFactory marshalledMode(boolean marshalledMode)
If marshalledMode is on, created serializer will readMarshalledRecordwith raw binary data instead of actual record. Useful for copying binary data from WAL.- Parameters:
marshalledMode- Marshalled mode.
-
skipPositionCheck
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'sWALPointer. Must be true if we are reading from compacted WAL segment.- Parameters:
skipPositionCheck- Skip position check.
-
-