com.netflix.astyanax.serializers
Class TimeUUIDSerializer
java.lang.Object
com.netflix.astyanax.serializers.AbstractSerializer<java.util.UUID>
com.netflix.astyanax.serializers.UUIDSerializer
com.netflix.astyanax.serializers.TimeUUIDSerializer
- All Implemented Interfaces:
- Serializer<java.util.UUID>
public class TimeUUIDSerializer
- extends UUIDSerializer
Method Summary |
java.nio.ByteBuffer |
fromString(java.lang.String str)
Create a ByteBuffer by first parsing the type out of a string |
static TimeUUIDSerializer |
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)
|
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 |
TimeUUIDSerializer
public TimeUUIDSerializer()
get
public static TimeUUIDSerializer get()
getComparatorType
public ComparatorType getComparatorType()
- Specified by:
getComparatorType
in interface Serializer<java.util.UUID>
- Overrides:
getComparatorType
in class UUIDSerializer
fromString
public java.nio.ByteBuffer fromString(java.lang.String str)
- Description copied from interface:
Serializer
- Create a ByteBuffer by first parsing the type out of a string
- Specified by:
fromString
in interface Serializer<java.util.UUID>
- Overrides:
fromString
in class UUIDSerializer
- Returns:
getString
public java.lang.String getString(java.nio.ByteBuffer byteBuffer)
- Specified by:
getString
in interface Serializer<java.util.UUID>
- Overrides:
getString
in class UUIDSerializer
getNext
public java.nio.ByteBuffer getNext(java.nio.ByteBuffer byteBuffer)
- Description copied from interface:
Serializer
- Return the byte buffer for the next value in sorted order for the
matching comparator type. This is used for paginating columns.
- Specified by:
getNext
in interface Serializer<java.util.UUID>
- Overrides:
getNext
in class UUIDSerializer
- Returns: