org.apache.cassandra.io
Interface ISSTableSerializer<T>
- All Known Implementing Classes:
- ColumnFamilySerializer, DeletionInfo.Serializer, OnDiskAtom.Serializer, RangeTombstone.Serializer
public interface ISSTableSerializer<T>
Method Summary |
T |
deserializeFromSSTable(java.io.DataInput dis,
Descriptor.Version version)
Deserialize into the specified DataInputStream instance in the format
suited for SSTables. |
void |
serializeForSSTable(T t,
java.io.DataOutput dos)
Serialize the specified type into the specified DataOutputStream
instance in the format suited for SSTables. |
serializeForSSTable
void serializeForSSTable(T t,
java.io.DataOutput dos)
throws java.io.IOException
- Serialize the specified type into the specified DataOutputStream
instance in the format suited for SSTables.
- Parameters:
t
- type that needs to be serializeddos
- DataOutput into which serialization needs to happen.
- Throws:
java.io.IOException
deserializeFromSSTable
T deserializeFromSSTable(java.io.DataInput dis,
Descriptor.Version version)
throws java.io.IOException
- Deserialize into the specified DataInputStream instance in the format
suited for SSTables.
- 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
Copyright © 2012 The Apache Software Foundation