public final class

ByteBufferSerializer

extends AbstractSerializer<T>
java.lang.Object
   ↳ com.netflix.astyanax.serializers.AbstractSerializer<T>
     ↳ com.netflix.astyanax.serializers.ByteBufferSerializer

Class Overview

The BytesExtractor is a simple identity function. It supports the Extractor interface and implements the fromBytes and toBytes as simple identity functions. However, the from and to methods both return the results of duplicate()

Summary

Public Constructors
ByteBufferSerializer()
Public Methods
ByteBuffer fromByteBuffer(ByteBuffer bytes)
Extract an object of type T from the bytes.
List<ByteBuffer> fromBytesList(List<ByteBuffer> list)
<V> Map<ByteBuffer, V> fromBytesMap(Map<ByteBuffer, V> map)
ByteBuffer fromString(String str)
Create a ByteBuffer by first parsing the type out of a string
static ByteBufferSerializer get()
String getString(ByteBuffer byteBuffer)
ByteBuffer toByteBuffer(ByteBuffer obj)
Extract bytes from the obj of type T
List<ByteBuffer> toBytesList(List<ByteBuffer> list)
<V> Map<ByteBuffer, V> toBytesMap(Map<ByteBuffer, V> map)
[Expand]
Inherited Methods
From class com.netflix.astyanax.serializers.AbstractSerializer
From class java.lang.Object
From interface com.netflix.astyanax.Serializer

Public Constructors

public ByteBufferSerializer ()

Public Methods

public ByteBuffer fromByteBuffer (ByteBuffer bytes)

Extract an object of type T from the bytes.

public List<ByteBuffer> fromBytesList (List<ByteBuffer> list)

public Map<ByteBuffer, V> fromBytesMap (Map<ByteBuffer, V> map)

public ByteBuffer fromString (String str)

Create a ByteBuffer by first parsing the type out of a string

public static ByteBufferSerializer get ()

public String getString (ByteBuffer byteBuffer)

public ByteBuffer toByteBuffer (ByteBuffer obj)

Extract bytes from the obj of type T

public List<ByteBuffer> toBytesList (List<ByteBuffer> list)

public Map<ByteBuffer, V> toBytesMap (Map<ByteBuffer, V> map)