me.prettyprint.cassandra.serializers
Class BigIntegerSerializer

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

public final class BigIntegerSerializer
extends AbstractSerializer<BigInteger>

Serializer implementation for BigInteger

Author:
zznate

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

BigIntegerSerializer

public BigIntegerSerializer()
Method Detail

get

public static BigIntegerSerializer get()

fromByteBuffer

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

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

toByteBuffer

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

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

getComparatorType

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


Copyright © 2011. All Rights Reserved.