com.netflix.astyanax.serializers
Class AnnotatedCompositeSerializer.ComponentSerializer<P>

java.lang.Object
  extended by com.netflix.astyanax.serializers.AnnotatedCompositeSerializer.ComponentSerializer<P>
Type Parameters:
P -
All Implemented Interfaces:
java.lang.Comparable<AnnotatedCompositeSerializer.ComponentSerializer<?>>
Enclosing class:
AnnotatedCompositeSerializer<T>

public static class AnnotatedCompositeSerializer.ComponentSerializer<P>
extends java.lang.Object
implements java.lang.Comparable<AnnotatedCompositeSerializer.ComponentSerializer<?>>

Serializer for a single component within the Pojo


Constructor Summary
AnnotatedCompositeSerializer.ComponentSerializer(java.lang.reflect.Field field, Serializer<P> serializer, int ordinal)
           
 
Method Summary
 int compareTo(AnnotatedCompositeSerializer.ComponentSerializer<?> other)
           
 void deserialize(java.lang.Object obj, java.nio.ByteBuffer value)
           
 java.lang.reflect.Field getField()
           
 java.nio.ByteBuffer serialize(java.lang.Object obj)
           
 java.nio.ByteBuffer serializeValue(java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotatedCompositeSerializer.ComponentSerializer

public AnnotatedCompositeSerializer.ComponentSerializer(java.lang.reflect.Field field,
                                                        Serializer<P> serializer,
                                                        int ordinal)
Method Detail

getField

public java.lang.reflect.Field getField()

serialize

public java.nio.ByteBuffer serialize(java.lang.Object obj)
                              throws java.lang.IllegalArgumentException,
                                     java.lang.IllegalAccessException
Throws:
java.lang.IllegalArgumentException
java.lang.IllegalAccessException

deserialize

public void deserialize(java.lang.Object obj,
                        java.nio.ByteBuffer value)
                 throws java.lang.IllegalArgumentException,
                        java.lang.IllegalAccessException
Throws:
java.lang.IllegalArgumentException
java.lang.IllegalAccessException

serializeValue

public java.nio.ByteBuffer serializeValue(java.lang.Object value)

compareTo

public int compareTo(AnnotatedCompositeSerializer.ComponentSerializer<?> other)
Specified by:
compareTo in interface java.lang.Comparable<AnnotatedCompositeSerializer.ComponentSerializer<?>>