me.prettyprint.cassandra.serializers
Class DoubleTypeSerializer

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

public class DoubleTypeSerializer
extends AbstractSerializer<Double>

Serialization class to use with Cassandras DoubleType.

Author:
Felix Obenauer

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

Constructor Detail

DoubleTypeSerializer

public DoubleTypeSerializer()
Method Detail

get

public static DoubleTypeSerializer get()

toByteBuffer

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

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

fromByteBuffer

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

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


Copyright © 2013. All Rights Reserved.