me.prettyprint.cassandra.serializers
Class DynamicCompositeSerializer

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

public class DynamicCompositeSerializer
extends AbstractSerializer<DynamicComposite>

Author:
Todd Nine

Constructor Summary
DynamicCompositeSerializer()
           
 
Method Summary
 DynamicComposite fromByteBuffer(ByteBuffer byteBuffer)
          Extract an object of type T from the bytes.
static DynamicCompositeSerializer get()
           
 ComparatorType getComparatorType()
           
 ByteBuffer toByteBuffer(DynamicComposite 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

DynamicCompositeSerializer

public DynamicCompositeSerializer()
Method Detail

get

public static DynamicCompositeSerializer get()

toByteBuffer

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

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

fromByteBuffer

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

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

getComparatorType

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


Copyright © 2011. All Rights Reserved.