me.prettyprint.cassandra.serializers
Class UUIDSerializer
java.lang.Object
me.prettyprint.cassandra.serializers.AbstractSerializer<UUID>
me.prettyprint.cassandra.serializers.UUIDSerializer
- All Implemented Interfaces:
- Serializer<UUID>
public final class UUIDSerializer
- extends AbstractSerializer<UUID>
A UUIDSerializer translates the byte[] to and from UUID types.
- Author:
- Ed Anuff
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UUIDSerializer
public UUIDSerializer()
get
public static UUIDSerializer get()
toByteBuffer
public ByteBuffer toByteBuffer(UUID uuid)
- Description copied from interface:
Serializer
- Extract bytes from the obj of type T
- Specified by:
toByteBuffer
in interface Serializer<UUID>
- Specified by:
toByteBuffer
in class AbstractSerializer<UUID>
- Returns:
fromByteBuffer
public UUID fromByteBuffer(ByteBuffer bytes)
- Description copied from interface:
Serializer
- Extract an object of type T from the bytes.
- Specified by:
fromByteBuffer
in interface Serializer<UUID>
- Specified by:
fromByteBuffer
in class AbstractSerializer<UUID>
- Returns:
getComparatorType
public ComparatorType getComparatorType()
- Specified by:
getComparatorType
in interface Serializer<UUID>
- Overrides:
getComparatorType
in class AbstractSerializer<UUID>
Copyright © 2011. All Rights Reserved.