org.apache.cassandra.db
Class RangeTombstone.Serializer

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

public static class RangeTombstone.Serializer
extends java.lang.Object
implements ISSTableSerializer<RangeTombstone>


Constructor Summary
RangeTombstone.Serializer()
           
 
Method Summary
 RangeTombstone deserializeBody(java.io.DataInput dis, java.nio.ByteBuffer min, Descriptor.Version version)
           
 RangeTombstone deserializeFromSSTable(java.io.DataInput dis, Descriptor.Version version)
          Deserialize into the specified DataInputStream instance in the format suited for SSTables.
 void serializeForSSTable(RangeTombstone t, java.io.DataOutput dos)
          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

RangeTombstone.Serializer

public RangeTombstone.Serializer()
Method Detail

serializeForSSTable

public void serializeForSSTable(RangeTombstone t,
                                java.io.DataOutput dos)
                         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<RangeTombstone>
Parameters:
t - type that needs to be serialized
dos - DataOutput into which serialization needs to happen.
Throws:
java.io.IOException

deserializeFromSSTable

public RangeTombstone deserializeFromSSTable(java.io.DataInput dis,
                                             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<RangeTombstone>
Parameters:
dis - 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

deserializeBody

public RangeTombstone deserializeBody(java.io.DataInput dis,
                                      java.nio.ByteBuffer min,
                                      Descriptor.Version version)
                               throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2013 The Apache Software Foundation