Class TombstoneHistogram.HistogramSerializer
java.lang.Object
org.apache.cassandra.utils.streamhist.TombstoneHistogram.HistogramSerializer
- All Implemented Interfaces:
IGenericSerializer<TombstoneHistogram,,DataInputPlus, DataOutputPlus> ISerializer<TombstoneHistogram>
- Direct Known Subclasses:
TombstoneHistogram.LegacyHistogramSerializer
- Enclosing class:
- TombstoneHistogram
public static class TombstoneHistogram.HistogramSerializer
extends Object
implements ISerializer<TombstoneHistogram>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeserialize from the specified DataInput instance.voidserialize(TombstoneHistogram histogram, DataOutputPlus out) Serialize the specified type into the specified DataOutput instance.longserializedSize(TombstoneHistogram histogram) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cassandra.io.ISerializer
skip
-
Field Details
-
instance
-
-
Constructor Details
-
HistogramSerializer
public HistogramSerializer()
-
-
Method Details
-
serialize
Description copied from interface:ISerializerSerialize the specified type into the specified DataOutput instance.- Specified by:
serializein interfaceIGenericSerializer<TombstoneHistogram,DataInputPlus, DataOutputPlus> - Specified by:
serializein interfaceISerializer<TombstoneHistogram>- Parameters:
histogram- type that needs to be serializedout- DataOutput into which serialization needs to happen.- Throws:
IOException
-
deserialize
Description copied from interface:ISerializerDeserialize from the specified DataInput instance.- Specified by:
deserializein interfaceIGenericSerializer<TombstoneHistogram,DataInputPlus, DataOutputPlus> - Specified by:
deserializein interfaceISerializer<TombstoneHistogram>- Parameters:
in- DataInput from which deserialization needs to happen.- Returns:
- the type that was deserialized
- Throws:
IOException
-
serializedSize
- Specified by:
serializedSizein interfaceIGenericSerializer<TombstoneHistogram,DataInputPlus, DataOutputPlus> - Specified by:
serializedSizein interfaceISerializer<TombstoneHistogram>
-