IVersionedSerializer (apache-cassandra API)
Date: 2012-05-04

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cassandra.io
Interface IVersionedSerializer<T>

All Known Implementing Classes:
  PendingFile.PendingFileSerializer, Row.RowSerializer, RowMutation.RowMutationSerializer, TruncateResponse.TruncateResponseSerializer, WriteResponse.WriteResponseSerializer

    public interface IVersionedSerializer<T>

Method Summary
`T` | `deserialize(java.io.DataInput dis, int version)` Deserialize into the specified DataInputStream instance.
`void` | `serialize(T t, java.io.DataOutput dos, int version)` Serialize the specified type into the specified DataOutputStream instance.
`long` | `serializedSize(T t, int version)`

Method Detail

### serialize

    void serialize(T t,
                   java.io.DataOutput dos,
                   int version)
                   throws java.io.IOException

  Serialize the specified type into the specified DataOutputStream instance.

  Parameters:
    `t` - type that needs to be serialized
    `dos` - DataOutput into which serialization needs to happen.
  Throws:
    `java.io.IOException`

### deserialize

    T deserialize(java.io.DataInput dis,
                  int version)
                  throws java.io.IOException

  Deserialize into the specified DataInputStream instance.

  Parameters:
    `dis` - DataInput from which deserialization needs to happen.
  Returns:
    the type that was deserialized
  Throws:
    `java.io.IOException`

### serializedSize

    long serializedSize(T t,
                        int version)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2012 The Apache Software Foundation