|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netflix.astyanax.serializers.AbstractSerializer<Boolean>
com.netflix.astyanax.serializers.BooleanSerializer
public final class BooleanSerializer
Converts bytes to Boolean and vice versa
Constructor Summary | |
---|---|
BooleanSerializer()
|
Method Summary | |
---|---|
Boolean |
fromByteBuffer(ByteBuffer bytes)
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 BooleanSerializer |
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(Boolean 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 BooleanSerializer()
Method Detail |
---|
public static BooleanSerializer get()
public ByteBuffer toByteBuffer(Boolean obj)
Serializer
toByteBuffer
in interface Serializer<Boolean>
toByteBuffer
in class AbstractSerializer<Boolean>
public Boolean fromByteBuffer(ByteBuffer bytes)
Serializer
fromByteBuffer
in interface Serializer<Boolean>
fromByteBuffer
in class AbstractSerializer<Boolean>
public ByteBuffer getNext(ByteBuffer byteBuffer)
Serializer
getNext
in interface Serializer<Boolean>
getNext
in class AbstractSerializer<Boolean>
public ByteBuffer fromString(String str)
Serializer
fromString
in interface Serializer<Boolean>
fromString
in class AbstractSerializer<Boolean>
public String getString(ByteBuffer byteBuffer)
getString
in interface Serializer<Boolean>
getString
in class AbstractSerializer<Boolean>
public ComparatorType getComparatorType()
getComparatorType
in interface Serializer<Boolean>
getComparatorType
in class AbstractSerializer<Boolean>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |