com.netflix.astyanax.serializers
Class AnnotatedCompositeSerializer.ComponentSerializer<P>
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotatedCompositeSerializer.ComponentSerializer
public AnnotatedCompositeSerializer.ComponentSerializer(Field field,
Serializer<P> serializer,
int ordinal)
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.