|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netflix.astyanax.serializers.AbstractSerializer<Short>
com.netflix.astyanax.serializers.ShortSerializer
public final class ShortSerializer
Serializer
for Short
s (no pun intended).
Constructor Summary | |
---|---|
ShortSerializer()
|
Method Summary | |
---|---|
Short |
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 ShortSerializer |
get()
|
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(Short obj)
Extract bytes from the obj of type T |
Methods inherited from class com.netflix.astyanax.serializers.AbstractSerializer |
---|
computeInitialHashSize, fromBytes, fromBytesList, fromBytesMap, fromBytesSet, getComparatorType, 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 ShortSerializer()
Method Detail |
---|
public static ShortSerializer get()
public ByteBuffer toByteBuffer(Short obj)
Serializer
toByteBuffer
in interface Serializer<Short>
toByteBuffer
in class AbstractSerializer<Short>
public Short fromByteBuffer(ByteBuffer byteBuffer)
Serializer
fromByteBuffer
in interface Serializer<Short>
fromByteBuffer
in class AbstractSerializer<Short>
public ByteBuffer fromString(String str)
Serializer
fromString
in interface Serializer<Short>
fromString
in class AbstractSerializer<Short>
public String getString(ByteBuffer byteBuffer)
getString
in interface Serializer<Short>
getString
in class AbstractSerializer<Short>
public ByteBuffer getNext(ByteBuffer byteBuffer)
Serializer
getNext
in interface Serializer<Short>
getNext
in class AbstractSerializer<Short>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |