org.apache.cassandra.db
Class ColumnFamilySerializer
java.lang.Object
org.apache.cassandra.db.ColumnFamilySerializer
- All Implemented Interfaces:
- ICompactSerializer2<ColumnFamily>
public class ColumnFamilySerializer
- extends java.lang.Object
- implements ICompactSerializer2<ColumnFamily>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColumnFamilySerializer
public ColumnFamilySerializer()
serialize
public void serialize(ColumnFamily columnFamily,
java.io.DataOutput dos)
- Description copied from interface:
ICompactSerializer2
- Serialize the specified type into the specified DataOutput instance.
- Specified by:
serialize
in interface ICompactSerializer2<ColumnFamily>
- Parameters:
columnFamily
- type that needs to be serializeddos
- DataOutput into which serialization needs to happen.
serializeForSSTable
public int serializeForSSTable(ColumnFamily columnFamily,
java.io.DataOutput dos)
serializeCFInfo
public void serializeCFInfo(ColumnFamily columnFamily,
java.io.DataOutput dos)
throws java.io.IOException
- Throws:
java.io.IOException
serializeWithIndexes
public int serializeWithIndexes(ColumnFamily columnFamily,
java.io.DataOutput dos)
deserialize
public ColumnFamily deserialize(java.io.DataInput dis)
throws java.io.IOException
- Description copied from interface:
ICompactSerializer2
- Deserialize from the specified DataInput instance.
- Specified by:
deserialize
in interface ICompactSerializer2<ColumnFamily>
- Parameters:
dis
- DataInput from which deserialization needs to happen.
- Returns:
- the type that was deserialized
- Throws:
java.io.IOException
deserializeColumns
public void deserializeColumns(java.io.DataInput dis,
ColumnFamily cf)
throws java.io.IOException
- Throws:
java.io.IOException
deserializeFromSSTableNoColumns
public ColumnFamily deserializeFromSSTableNoColumns(ColumnFamily cf,
java.io.DataInput input)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2010 The Apache Software Foundation