public class

TypeInferringSerializer

extends AbstractSerializer<T>
implements Serializer<T>
java.lang.Object
   ↳ com.netflix.astyanax.serializers.AbstractSerializer<T>
     ↳ com.netflix.astyanax.serializers.TypeInferringSerializer<T>

Class Overview

A serializer that dynamically delegates to a proper serializer based on the value passed

Summary

Public Constructors
TypeInferringSerializer()
Public Methods
T fromByteBuffer(ByteBuffer byteBuffer)
Extract an object of type T from the bytes.
static <T> TypeInferringSerializer<T> get()
ByteBuffer toByteBuffer(T obj)
Extract bytes from the obj of type T
[Expand]
Inherited Methods
From class com.netflix.astyanax.serializers.AbstractSerializer
From class java.lang.Object
From interface com.netflix.astyanax.Serializer

Public Constructors

public TypeInferringSerializer ()

Public Methods

public T fromByteBuffer (ByteBuffer byteBuffer)

Extract an object of type T from the bytes.

public static TypeInferringSerializer<T> get ()

public ByteBuffer toByteBuffer (T obj)

Extract bytes from the obj of type T