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.db
Class ColumnSerializer

    java.lang.Object
      org.apache.cassandra.db.ColumnSerializer

All Implemented Interfaces:
  IColumnSerializer, ISerializer<IColumn>

    public class ColumnSerializer

extends java.lang.Object
implements IColumnSerializer

Nested Class Summary

Nested classes/interfaces inherited from interface org.apache.cassandra.io.IColumnSerializer
`IColumnSerializer.Flag`

Field Summary
`static int` | `COUNTER_MASK`
`static int` | `COUNTER_UPDATE_MASK`
`static int` | `DELETION_MASK`
`static int` | `EXPIRATION_MASK`

Constructor Summary
`ColumnSerializer()`

Method Summary
`Column` | `deserialize(java.io.DataInput dis)` Deserialize from the specified DataInput instance.
`Column` | `deserialize(java.io.DataInput dis, IColumnSerializer.Flag flag)`
`Column` | `deserialize(java.io.DataInput dis, IColumnSerializer.Flag flag, int expireBefore)`
`void` | `serialize(IColumn column, java.io.DataOutput dos)` Serialize the specified type into the specified DataOutput instance.
`long` | `serializedSize(IColumn object)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### DELETION_MASK

    public static final int DELETION_MASK

See Also:
  Constant Field Values

### EXPIRATION_MASK

    public static final int EXPIRATION_MASK

See Also:
  Constant Field Values

### COUNTER_MASK

    public static final int COUNTER_MASK

See Also:
  Constant Field Values

### COUNTER_UPDATE_MASK

    public static final int COUNTER_UPDATE_MASK

See Also:
  Constant Field Values

Constructor Detail

### ColumnSerializer

    public ColumnSerializer()

Method Detail

### serialize

    public void serialize(IColumn column,
                          java.io.DataOutput dos)

  Description copied from interface: `ISerializer`
  Serialize the specified type into the specified DataOutput instance.

  Specified by:
    `serialize` in interface `ISerializer<IColumn>`
  Parameters:
    `column` - type that needs to be serialized
    `dos` - DataOutput into which serialization needs to happen.

### deserialize

    public Column deserialize(java.io.DataInput dis)
                       throws java.io.IOException

  Description copied from interface: `ISerializer`
  Deserialize from the specified DataInput instance.

  Specified by:
    `deserialize` in interface `ISerializer<IColumn>`
  Parameters:
    `dis` - DataInput from which deserialization needs to happen.
  Returns:
    the type that was deserialized
  Throws:
    `java.io.IOException`

### deserialize

    public Column deserialize(java.io.DataInput dis,
                              IColumnSerializer.Flag flag)
                       throws java.io.IOException

  Throws:
    `java.io.IOException`

### deserialize

    public Column deserialize(java.io.DataInput dis,
                              IColumnSerializer.Flag flag,
                              int expireBefore)
                       throws java.io.IOException

  Specified by:
    `deserialize` in interface `IColumnSerializer`
  Throws:
    `java.io.IOException`

### serializedSize

    public long serializedSize(IColumn object)

  Specified by:
    `serializedSize` in interface `ISerializer<IColumn>`

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 © 2013 The Apache Software Foundation