Package org.apache.cassandra.io
Interface ISerializer<T>
- All Superinterfaces:
IGenericSerializer<T,DataInputPlus, DataOutputPlus>
- All Known Implementing Classes:
CommitLogPosition.CommitLogPositionSerializer,DeletionTime.LegacySerializer,DeletionTime.Serializer,EstimatedHistogram.EstimatedHistogramSerializer,IndexInfo.Serializer,SerializingCacheProvider.RowCacheSerializer,TombstoneHistogram.HistogramSerializer,TombstoneHistogram.LegacyHistogramSerializer
-
Method Summary
Modifier and TypeMethodDescriptionDeserialize from the specified DataInput instance.voidserialize(T t, DataOutputPlus out) Serialize the specified type into the specified DataOutput instance.longserializedSize(T t) default voidskip(DataInputPlus in)
-
Method Details
-
serialize
Serialize the specified type into the specified DataOutput instance.- Specified by:
serializein interfaceIGenericSerializer<T,DataInputPlus, DataOutputPlus> - Parameters:
t- type that needs to be serializedout- DataOutput into which serialization needs to happen.- Throws:
IOException
-
deserialize
Deserialize from the specified DataInput instance.- Specified by:
deserializein interfaceIGenericSerializer<T,DataInputPlus, DataOutputPlus> - Parameters:
in- DataInput from which deserialization needs to happen.- Returns:
- the type that was deserialized
- Throws:
IOException
-
serializedSize
- Specified by:
serializedSizein interfaceIGenericSerializer<T,DataInputPlus, DataOutputPlus>
-
skip
- Throws:
IOException
-