Class TombstoneHistogram.HistogramSerializer
- java.lang.Object
-
- org.apache.cassandra.utils.streamhist.TombstoneHistogram.HistogramSerializer
-
- All Implemented Interfaces:
ISerializer<TombstoneHistogram>
- Enclosing class:
- TombstoneHistogram
public static class TombstoneHistogram.HistogramSerializer extends java.lang.Object implements ISerializer<TombstoneHistogram>
-
-
Constructor Summary
Constructors Constructor Description HistogramSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TombstoneHistogramdeserialize(DataInputPlus in)Deserialize 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, wait
-
Methods inherited from interface org.apache.cassandra.io.ISerializer
skip
-
-
-
-
Method Detail
-
serialize
public void serialize(TombstoneHistogram histogram, DataOutputPlus out) throws java.io.IOException
Description copied from interface:ISerializerSerialize the specified type into the specified DataOutput instance.- Specified by:
serializein interfaceISerializer<TombstoneHistogram>- Parameters:
histogram- type that needs to be serializedout- DataOutput into which serialization needs to happen.- Throws:
java.io.IOException
-
deserialize
public TombstoneHistogram deserialize(DataInputPlus in) throws java.io.IOException
Description copied from interface:ISerializerDeserialize from the specified DataInput instance.- Specified by:
deserializein interfaceISerializer<TombstoneHistogram>- Parameters:
in- DataInput from which deserialization needs to happen.- Returns:
- the type that was deserialized
- Throws:
java.io.IOException
-
serializedSize
public long serializedSize(TombstoneHistogram histogram)
- Specified by:
serializedSizein interfaceISerializer<TombstoneHistogram>
-
-