org.apache.cassandra.db
Interface ICompactSerializer2<T>

All Superinterfaces:
ICompactSerializer<T>
All Known Implementing Classes:
ColumnFamily.ColumnFamilySerializer

public interface ICompactSerializer2<T>
extends ICompactSerializer<T>

This interface is an extension of the ICompactSerializer which allows for partial deserialization of a type. Author : Avinash Lakshman ( alakshman@facebook.com) & Prashant Malik ( pmalik@facebook.com )


Method Summary
 T deserialize(java.io.DataInputStream dis, IFilter filter)
          Returns an instance of an IColumn which contains only the columns that are required.
 T deserialize(java.io.DataInputStream dis, java.lang.String name, IFilter filter)
          This method is used to deserialize just the specified field from the serialized stream.
 void skip(java.io.DataInputStream dis)
           
 
Methods inherited from interface org.apache.cassandra.io.ICompactSerializer
deserialize, serialize
 

Method Detail

deserialize

T deserialize(java.io.DataInputStream dis,
              IFilter filter)
              throws java.io.IOException
Returns an instance of an IColumn which contains only the columns that are required. This is specified in the columnNames argument.

Parameters:
dis - DataInput from which we need to deserialize.
Returns:
type which contains the specified items.
Throws:
java.io.IOException

deserialize

T deserialize(java.io.DataInputStream dis,
              java.lang.String name,
              IFilter filter)
              throws java.io.IOException
This method is used to deserialize just the specified field from the serialized stream.

Parameters:
dis - DataInput from which we need to deserialize.
name - name of the desired field.
Returns:
the deserialized type.
Throws:
java.io.IOException

skip

void skip(java.io.DataInputStream dis)
          throws java.io.IOException
Parameters:
dis -
Throws:
java.io.IOException


Copyright © 2009 The Apache Software Foundation