me.prettyprint.cassandra.serializers
Class FloatTypeSerializer

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

public class FloatTypeSerializer
extends AbstractSerializer<Float>

Serialization class to use with Cassandras FloatType.

Author:
Felix Obenauer

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

FloatTypeSerializer

public FloatTypeSerializer()
Method Detail

get

public static FloatTypeSerializer get()

toByteBuffer

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

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

fromByteBuffer

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

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


Copyright © 2013. All Rights Reserved.