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:
Comparable<AnnotatedCompositeSerializer.ComponentSerializer<?>>
Enclosing class:
AnnotatedCompositeSerializer<T>

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

Serializer for a single component within the Pojo

Author:
elandau

Constructor Summary
AnnotatedCompositeSerializer.ComponentSerializer(Field field, Serializer<P> serializer, int ordinal)
           
 
Method Summary
 int compareTo(AnnotatedCompositeSerializer.ComponentSerializer<?> other)
           
 void deserialize(Object obj, ByteBuffer value)
           
 Field getField()
           
 ByteBuffer serialize(Object obj)
           
 ByteBuffer serializeValue(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(Field field,
                                                        Serializer<P> serializer,
                                                        int ordinal)
Method Detail

getField

public Field getField()

serialize

public ByteBuffer serialize(Object obj)
                     throws IllegalArgumentException,
                            IllegalAccessException
Throws:
IllegalArgumentException
IllegalAccessException

deserialize

public void deserialize(Object obj,
                        ByteBuffer value)
                 throws IllegalArgumentException,
                        IllegalAccessException
Throws:
IllegalArgumentException
IllegalAccessException

serializeValue

public ByteBuffer serializeValue(Object value)

compareTo

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


Copyright © 2012. All Rights Reserved.