me.prettyprint.cassandra.serializers
Class CompositeSerializer

java.lang.Object
  extended by me.prettyprint.cassandra.serializers.AbstractSerializer<Composite>
      extended by me.prettyprint.cassandra.serializers.CompositeSerializer
All Implemented Interfaces:
Serializer<Composite>

public class CompositeSerializer
extends AbstractSerializer<Composite>

Author:
Todd Nine

Constructor Summary
CompositeSerializer()
           
 
Method Summary
 Composite fromByteBuffer(ByteBuffer byteBuffer)
          Extract an object of type T from the bytes.
 ComparatorType getComparatorType()
           
 ByteBuffer toByteBuffer(Composite obj)
          Extract bytes from the obj of type T
 
Methods inherited from class me.prettyprint.cassandra.serializers.AbstractSerializer
computeInitialHashSize, fromBytes, fromBytesList, fromBytesMap, fromBytesSet, toBytes, toBytesList, toBytesMap, toBytesSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeSerializer

public CompositeSerializer()
Method Detail

toByteBuffer

public ByteBuffer toByteBuffer(Composite obj)
Description copied from interface: Serializer
Extract bytes from the obj of type T

Specified by:
toByteBuffer in interface Serializer<Composite>
Specified by:
toByteBuffer in class AbstractSerializer<Composite>
Returns:

fromByteBuffer

public Composite fromByteBuffer(ByteBuffer byteBuffer)
Description copied from interface: Serializer
Extract an object of type T from the bytes.

Specified by:
fromByteBuffer in interface Serializer<Composite>
Specified by:
fromByteBuffer in class AbstractSerializer<Composite>
Returns:

getComparatorType

public ComparatorType getComparatorType()
Specified by:
getComparatorType in interface Serializer<Composite>
Overrides:
getComparatorType in class AbstractSerializer<Composite>


Copyright © 2011. All Rights Reserved.