|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.netflix.astyanax.serializers.AbstractSerializer<java.util.UUID> com.netflix.astyanax.serializers.UUIDSerializer
public class UUIDSerializer
A UUIDSerializer translates the byte[] to and from UUID types.
Constructor Summary | |
---|---|
UUIDSerializer()
|
Method Summary | |
---|---|
java.util.UUID |
fromByteBuffer(java.nio.ByteBuffer bytes)
Extract an object of type T from the bytes. |
java.nio.ByteBuffer |
fromString(java.lang.String str)
Create a ByteBuffer by first parsing the type out of a string |
static UUIDSerializer |
get()
|
ComparatorType |
getComparatorType()
|
java.nio.ByteBuffer |
getNext(java.nio.ByteBuffer byteBuffer)
Return the byte buffer for the next value in sorted order for the matching comparator type. |
java.lang.String |
getString(java.nio.ByteBuffer byteBuffer)
|
java.nio.ByteBuffer |
toByteBuffer(java.util.UUID uuid)
Extract bytes from the obj of type T |
Methods inherited from class com.netflix.astyanax.serializers.AbstractSerializer |
---|
computeInitialHashSize, fromBytes, fromBytesList, fromBytesMap, fromBytesSet, toBytes, toBytesList, toBytesList, toBytesList, toBytesMap, toBytesSet |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UUIDSerializer()
Method Detail |
---|
public static UUIDSerializer get()
public java.nio.ByteBuffer toByteBuffer(java.util.UUID uuid)
Serializer
toByteBuffer
in interface Serializer<java.util.UUID>
toByteBuffer
in class AbstractSerializer<java.util.UUID>
public java.util.UUID fromByteBuffer(java.nio.ByteBuffer bytes)
Serializer
fromByteBuffer
in interface Serializer<java.util.UUID>
fromByteBuffer
in class AbstractSerializer<java.util.UUID>
public ComparatorType getComparatorType()
getComparatorType
in interface Serializer<java.util.UUID>
getComparatorType
in class AbstractSerializer<java.util.UUID>
public java.nio.ByteBuffer fromString(java.lang.String str)
Serializer
fromString
in interface Serializer<java.util.UUID>
fromString
in class AbstractSerializer<java.util.UUID>
public java.lang.String getString(java.nio.ByteBuffer byteBuffer)
getString
in interface Serializer<java.util.UUID>
getString
in class AbstractSerializer<java.util.UUID>
public java.nio.ByteBuffer getNext(java.nio.ByteBuffer byteBuffer)
Serializer
getNext
in interface Serializer<java.util.UUID>
getNext
in class AbstractSerializer<java.util.UUID>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |