public class

ObjectSerializer

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

Class Overview

The ObjectSerializer is used to turn objects into their binary representations.

Summary

Public Constructors
ObjectSerializer()
Public Methods
Object fromByteBuffer(ByteBuffer bytes)
Extract an object of type T from the bytes.
static ObjectSerializer get()
ByteBuffer toByteBuffer(Object 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 ObjectSerializer ()

Public Methods

public Object fromByteBuffer (ByteBuffer bytes)

Extract an object of type T from the bytes.

public static ObjectSerializer get ()

public ByteBuffer toByteBuffer (Object obj)

Extract bytes from the obj of type T