public class

PrefixedSerializer

extends AbstractSerializer<T>
java.lang.Object
   ↳ com.netflix.astyanax.serializers.AbstractSerializer<T>
     ↳ com.netflix.astyanax.serializers.PrefixedSerializer<P, S>

Summary

Public Constructors
PrefixedSerializer(P prefix, Serializer<P> prefixSerializer, Serializer<S> suffixSerializer)
Public Methods
S fromByteBuffer(ByteBuffer bytes)
Extract an object of type T from the bytes.
List<S> fromBytesList(List<ByteBuffer> list)
<V> Map<S, V> fromBytesMap(Map<ByteBuffer, V> map)
ByteBuffer toByteBuffer(S s)
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 PrefixedSerializer (P prefix, Serializer<P> prefixSerializer, Serializer<S> suffixSerializer)

Public Methods

public S fromByteBuffer (ByteBuffer bytes)

Extract an object of type T from the bytes.

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

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

public ByteBuffer toByteBuffer (S s)

Extract bytes from the obj of type T