|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.astyanax.serializers.AbstractSerializer<java.util.Date>
com.netflix.astyanax.serializers.DateSerializer
public final class DateSerializer
Converts bytes to Date and vice versa, by first converting the Date to or from a long which represents the specified number of milliseconds since the standard base time known as "the Unix epoch", that is January 1, 1970, 00:00:00 UTC.
Date| Constructor Summary | |
|---|---|
DateSerializer()
|
|
| Method Summary | |
|---|---|
java.util.Date |
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 DateSerializer |
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.Date obj)
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 DateSerializer()
| Method Detail |
|---|
public static DateSerializer get()
public java.nio.ByteBuffer toByteBuffer(java.util.Date obj)
Serializer
toByteBuffer in interface Serializer<java.util.Date>toByteBuffer in class AbstractSerializer<java.util.Date>public java.util.Date fromByteBuffer(java.nio.ByteBuffer bytes)
Serializer
fromByteBuffer in interface Serializer<java.util.Date>fromByteBuffer in class AbstractSerializer<java.util.Date>public java.nio.ByteBuffer fromString(java.lang.String str)
Serializer
fromString in interface Serializer<java.util.Date>fromString in class AbstractSerializer<java.util.Date>public java.lang.String getString(java.nio.ByteBuffer byteBuffer)
getString in interface Serializer<java.util.Date>getString in class AbstractSerializer<java.util.Date>public java.nio.ByteBuffer getNext(java.nio.ByteBuffer byteBuffer)
Serializer
getNext in interface Serializer<java.util.Date>getNext in class AbstractSerializer<java.util.Date>public ComparatorType getComparatorType()
getComparatorType in interface Serializer<java.util.Date>getComparatorType in class AbstractSerializer<java.util.Date>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||