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

java.lang.Object
  extended by com.netflix.astyanax.serializers.AbstractSerializer<T>
      extended by com.netflix.astyanax.serializers.JacksonSerializer<T>
All Implemented Interfaces:
Serializer<T>

public class JacksonSerializer<T>
extends AbstractSerializer<T>


Constructor Summary
JacksonSerializer(java.lang.Class<T> clazz)
           
 
Method Summary
 T fromByteBuffer(java.nio.ByteBuffer byteBuffer)
          Extract an object of type T from the bytes.
 java.nio.ByteBuffer toByteBuffer(T entity)
          Extract bytes from the obj of type T
 
Methods inherited from class com.netflix.astyanax.serializers.AbstractSerializer
computeInitialHashSize, fromBytes, fromBytesList, fromBytesMap, fromBytesSet, fromString, getComparatorType, getNext, 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

JacksonSerializer

public JacksonSerializer(java.lang.Class<T> clazz)
Method Detail

toByteBuffer

public java.nio.ByteBuffer toByteBuffer(T entity)
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: