me.prettyprint.cassandra.serializers
Class CompositeSerializer
java.lang.Object
me.prettyprint.cassandra.serializers.AbstractSerializer<Composite>
me.prettyprint.cassandra.serializers.CompositeSerializer
- All Implemented Interfaces:
- Serializer<Composite>
public class CompositeSerializer
- extends AbstractSerializer<Composite>
- Author:
- Todd Nine
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompositeSerializer
public CompositeSerializer()
toByteBuffer
public ByteBuffer toByteBuffer(Composite obj)
- Description copied from interface:
Serializer
- Extract bytes from the obj of type T
- Specified by:
toByteBuffer
in interface Serializer<Composite>
- Specified by:
toByteBuffer
in class AbstractSerializer<Composite>
- Returns:
fromByteBuffer
public Composite fromByteBuffer(ByteBuffer byteBuffer)
- Description copied from interface:
Serializer
- Extract an object of type T from the bytes.
- Specified by:
fromByteBuffer
in interface Serializer<Composite>
- Specified by:
fromByteBuffer
in class AbstractSerializer<Composite>
- Returns:
getComparatorType
public ComparatorType getComparatorType()
- Specified by:
getComparatorType
in interface Serializer<Composite>
- Overrides:
getComparatorType
in class AbstractSerializer<Composite>
Copyright © 2011. All Rights Reserved.