org.apache.cassandra.db
Class OnDiskAtom.Serializer

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

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


Constructor Summary
OnDiskAtom.Serializer(IColumnSerializer columnSerializer)
           
 
Method Summary
 OnDiskAtom deserializeFromSSTable(java.io.DataInput dis, Descriptor.Version version)
          Deserialize into the specified DataInputStream instance in the format suited for SSTables.
 OnDiskAtom deserializeFromSSTable(java.io.DataInput dis, IColumnSerializer.Flag flag, int expireBefore, Descriptor.Version version)
           
 void serializeForSSTable(OnDiskAtom atom, 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

OnDiskAtom.Serializer

public OnDiskAtom.Serializer(IColumnSerializer columnSerializer)
Method Detail

serializeForSSTable

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

deserializeFromSSTable

public OnDiskAtom 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<OnDiskAtom>
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

deserializeFromSSTable

public OnDiskAtom deserializeFromSSTable(java.io.DataInput dis,
                                         IColumnSerializer.Flag flag,
                                         int expireBefore,
                                         Descriptor.Version version)
                                  throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2013 The Apache Software Foundation