|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.netflix.astyanax.serializers.AbstractSerializer<T> com.netflix.astyanax.serializers.TypeInferringSerializer<T>
T
- typepublic class TypeInferringSerializer<T>
A serializer that dynamically delegates to a proper serializer based on the value passed
Constructor Summary | |
---|---|
TypeInferringSerializer()
|
Method Summary | ||
---|---|---|
T |
fromByteBuffer(java.nio.ByteBuffer byteBuffer)
Extract an object of type T from the bytes. |
|
static
|
get()
|
|
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, 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 |
Methods inherited from interface com.netflix.astyanax.Serializer |
---|
fromBytes, fromBytesList, fromBytesMap, fromBytesSet, fromString, getComparatorType, getNext, getString, toBytes, toBytesList, toBytesList, toBytesList, toBytesMap, toBytesSet |
Constructor Detail |
---|
public TypeInferringSerializer()
Method Detail |
---|
public static <T> TypeInferringSerializer<T> get()
public java.nio.ByteBuffer toByteBuffer(T obj)
Serializer
toByteBuffer
in interface Serializer<T>
toByteBuffer
in class AbstractSerializer<T>
public T fromByteBuffer(java.nio.ByteBuffer byteBuffer)
Serializer
fromByteBuffer
in interface Serializer<T>
fromByteBuffer
in class AbstractSerializer<T>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |