|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netflix.astyanax.serializers.AbstractSerializer<Long>
com.netflix.astyanax.serializers.LongSerializer
public final class LongSerializer
Converts bytes to Long and vise a versa
Constructor Summary | |
---|---|
LongSerializer()
|
Method Summary | |
---|---|
Long |
fromByteBuffer(ByteBuffer byteBuffer)
Extract an object of type T from the bytes. |
ByteBuffer |
fromString(String str)
Create a ByteBuffer by first parsing the type out of a string |
static LongSerializer |
get()
|
ComparatorType |
getComparatorType()
|
ByteBuffer |
getNext(ByteBuffer byteBuffer)
Return the byte buffer for the next value in sorted order for the matching comparator type. |
String |
getString(ByteBuffer byteBuffer)
|
ByteBuffer |
toByteBuffer(Long 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, toBytesMap, toBytesSet |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LongSerializer()
Method Detail |
---|
public static LongSerializer get()
public ByteBuffer toByteBuffer(Long obj)
Serializer
toByteBuffer
in interface Serializer<Long>
toByteBuffer
in class AbstractSerializer<Long>
public Long fromByteBuffer(ByteBuffer byteBuffer)
Serializer
fromByteBuffer
in interface Serializer<Long>
fromByteBuffer
in class AbstractSerializer<Long>
public ComparatorType getComparatorType()
getComparatorType
in interface Serializer<Long>
getComparatorType
in class AbstractSerializer<Long>
public ByteBuffer fromString(String str)
Serializer
fromString
in interface Serializer<Long>
fromString
in class AbstractSerializer<Long>
public String getString(ByteBuffer byteBuffer)
getString
in interface Serializer<Long>
getString
in class AbstractSerializer<Long>
public ByteBuffer getNext(ByteBuffer byteBuffer)
Serializer
getNext
in interface Serializer<Long>
getNext
in class AbstractSerializer<Long>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |