com.netflix.astyanax.serializers
Class ReversedSerializer<T>

java.lang.Object
  extended by com.netflix.astyanax.serializers.AbstractSerializer<T>
      extended by com.netflix.astyanax.serializers.ReversedSerializer<T>
All Implemented Interfaces:
Serializer<T>
Direct Known Subclasses:
SpecificReversedSerializer

public class ReversedSerializer<T>
extends AbstractSerializer<T>


Constructor Summary
ReversedSerializer()
           
 
Method Summary
 T fromByteBuffer(java.nio.ByteBuffer byteBuffer)
          Extract an object of type T from the bytes.
static
<T> ReversedSerializer<T>
get()
           
 ComparatorType getComparatorType()
           
 java.nio.ByteBuffer getNext(java.nio.ByteBuffer byteBuffer)
          Return the byte buffer for the next value in sorted order for the matching comparator type.
 java.nio.ByteBuffer toByteBuffer(T obj)
          Extract bytes from the obj of type T
 
Methods inherited from class com.netflix.astyanax.serializers.AbstractSerializer
computeInitialHashSize, fromBytes, fromBytesList, fromBytesMap, fromBytesSet, fromString, getString, toBytes, toBytesList, toBytesList, toBytesList, toBytesMap, toBytesSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReversedSerializer

public ReversedSerializer()
Method Detail

get

public static <T> ReversedSerializer<T> get()

toByteBuffer

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

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

fromByteBuffer

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

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

getComparatorType

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

getNext

public java.nio.ByteBuffer getNext(java.nio.ByteBuffer byteBuffer)
Description copied from interface: Serializer
Return the byte buffer for the next value in sorted order for the matching comparator type. This is used for paginating columns.

Specified by:
getNext in interface Serializer<T>
Overrides:
getNext in class AbstractSerializer<T>
Returns: