org.apache.cassandra.db
Class DeletionInfo.Serializer

java.lang.Object
  extended by org.apache.cassandra.db.DeletionInfo.Serializer
All Implemented Interfaces:
ISSTableSerializer<DeletionInfo>, IVersionedSerializer<DeletionInfo>
Enclosing class:
DeletionInfo

public static class DeletionInfo.Serializer
extends java.lang.Object
implements IVersionedSerializer<DeletionInfo>, ISSTableSerializer<DeletionInfo>


Constructor Summary
DeletionInfo.Serializer()
           
 
Method Summary
 DeletionInfo deserialize(java.io.DataInput in, int version)
          Deserialize into the specified DataInputStream instance.
 DeletionInfo deserialize(java.io.DataInput in, int version, java.util.Comparator<java.nio.ByteBuffer> comparator)
           
 DeletionInfo deserializeFromSSTable(java.io.DataInput in, Descriptor.Version version)
          Deserialize into the specified DataInputStream instance in the format suited for SSTables.
 void serialize(DeletionInfo info, java.io.DataOutput out, int version)
          Serialize the specified type into the specified DataOutputStream instance.
 long serializedSize(DeletionInfo info, int version)
          Calculate serialized size of object without actually serializing.
 long serializedSize(DeletionInfo info, TypeSizes typeSizes, int version)
           
 void serializeForSSTable(DeletionInfo info, java.io.DataOutput out)
          Serialize the specified type into the specified DataOutputStream instance in the format suited for SSTables.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeletionInfo.Serializer

public DeletionInfo.Serializer()
Method Detail

serialize

public void serialize(DeletionInfo info,
                      java.io.DataOutput out,
                      int version)
               throws java.io.IOException
Description copied from interface: IVersionedSerializer
Serialize the specified type into the specified DataOutputStream instance.

Specified by:
serialize in interface IVersionedSerializer<DeletionInfo>
Parameters:
info - type that needs to be serialized
out - DataOutput into which serialization needs to happen.
version - protocol version
Throws:
java.io.IOException

serializeForSSTable

public void serializeForSSTable(DeletionInfo info,
                                java.io.DataOutput out)
                         throws java.io.IOException
Description copied from interface: ISSTableSerializer
Serialize the specified type into the specified DataOutputStream instance in the format suited for SSTables.

Specified by:
serializeForSSTable in interface ISSTableSerializer<DeletionInfo>
Parameters:
info - type that needs to be serialized
out - DataOutput into which serialization needs to happen.
Throws:
java.io.IOException

deserialize

public DeletionInfo deserialize(java.io.DataInput in,
                                int version)
                         throws java.io.IOException
Description copied from interface: IVersionedSerializer
Deserialize into the specified DataInputStream instance.

Specified by:
deserialize in interface IVersionedSerializer<DeletionInfo>
Parameters:
in - DataInput from which deserialization needs to happen.
version - protocol version
Returns:
the type that was deserialized
Throws:
java.io.IOException

deserialize

public DeletionInfo deserialize(java.io.DataInput in,
                                int version,
                                java.util.Comparator<java.nio.ByteBuffer> comparator)
                         throws java.io.IOException
Throws:
java.io.IOException

deserializeFromSSTable

public DeletionInfo deserializeFromSSTable(java.io.DataInput in,
                                           Descriptor.Version version)
                                    throws java.io.IOException
Description copied from interface: ISSTableSerializer
Deserialize into the specified DataInputStream instance in the format suited for SSTables.

Specified by:
deserializeFromSSTable in interface ISSTableSerializer<DeletionInfo>
Parameters:
in - DataInput from which deserialization needs to happen.
version - the version for the sstable we're reading from
Returns:
the type that was deserialized
Throws:
java.io.IOException

serializedSize

public long serializedSize(DeletionInfo info,
                           TypeSizes typeSizes,
                           int version)

serializedSize

public long serializedSize(DeletionInfo info,
                           int version)
Description copied from interface: IVersionedSerializer
Calculate serialized size of object without actually serializing.

Specified by:
serializedSize in interface IVersionedSerializer<DeletionInfo>
Parameters:
info - object to calculate serialized size
version - protocol version
Returns:
serialized size of object t


Copyright © 2013 The Apache Software Foundation