com.netflix.astyanax.serializers
Class CharSerializer

java.lang.Object
  extended by com.netflix.astyanax.serializers.AbstractSerializer<java.lang.Character>
      extended by com.netflix.astyanax.serializers.CharSerializer
All Implemented Interfaces:
Serializer<java.lang.Character>

public class CharSerializer
extends AbstractSerializer<java.lang.Character>

Uses Char Serializer


Constructor Summary
CharSerializer()
           
 
Method Summary
 java.lang.Character 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 CharSerializer get()
           
 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.lang.Character 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, toBytesList, toBytesMap, toBytesSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharSerializer

public CharSerializer()
Method Detail

get

public static CharSerializer get()

toByteBuffer

public java.nio.ByteBuffer toByteBuffer(java.lang.Character obj)
Description copied from interface: Serializer
Extract bytes from the obj of type T

Specified by:
toByteBuffer in interface Serializer<java.lang.Character>
Specified by:
toByteBuffer in class AbstractSerializer<java.lang.Character>
Returns:

fromByteBuffer

public java.lang.Character fromByteBuffer(java.nio.ByteBuffer bytes)
Description copied from interface: Serializer
Extract an object of type T from the bytes.

Specified by:
fromByteBuffer in interface Serializer<java.lang.Character>
Specified by:
fromByteBuffer in class AbstractSerializer<java.lang.Character>
Returns:

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.lang.Character>
Overrides:
fromString in class AbstractSerializer<java.lang.Character>
Returns:

getString

public java.lang.String getString(java.nio.ByteBuffer byteBuffer)
Specified by:
getString in interface Serializer<java.lang.Character>
Overrides:
getString in class AbstractSerializer<java.lang.Character>

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.lang.Character>
Overrides:
getNext in class AbstractSerializer<java.lang.Character>
Returns: