com.netflix.astyanax.serializers
Class DynamicCompositeSerializer
java.lang.Object
com.netflix.astyanax.serializers.AbstractSerializer<DynamicComposite>
com.netflix.astyanax.serializers.DynamicCompositeSerializer
- All Implemented Interfaces:
- Serializer<DynamicComposite>
public class DynamicCompositeSerializer
- extends AbstractSerializer<DynamicComposite>
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 |
DynamicCompositeSerializer
public DynamicCompositeSerializer()
get
public static DynamicCompositeSerializer get()
toByteBuffer
public java.nio.ByteBuffer toByteBuffer(DynamicComposite obj)
- Description copied from interface:
Serializer
- Extract bytes from the obj of type T
- Specified by:
toByteBuffer
in interface Serializer<DynamicComposite>
- Specified by:
toByteBuffer
in class AbstractSerializer<DynamicComposite>
- Returns:
fromByteBuffer
public DynamicComposite fromByteBuffer(java.nio.ByteBuffer byteBuffer)
- Description copied from interface:
Serializer
- Extract an object of type T from the bytes.
- Specified by:
fromByteBuffer
in interface Serializer<DynamicComposite>
- Specified by:
fromByteBuffer
in class AbstractSerializer<DynamicComposite>
- Returns:
getComparatorType
public ComparatorType getComparatorType()
- Specified by:
getComparatorType
in interface Serializer<DynamicComposite>
- Overrides:
getComparatorType
in class AbstractSerializer<DynamicComposite>
fromString
public java.nio.ByteBuffer fromString(java.lang.String string)
- Description copied from interface:
Serializer
- Create a ByteBuffer by first parsing the type out of a string
- Specified by:
fromString
in interface Serializer<DynamicComposite>
- Overrides:
fromString
in class AbstractSerializer<DynamicComposite>
- Returns:
getString
public java.lang.String getString(java.nio.ByteBuffer byteBuffer)
- Specified by:
getString
in interface Serializer<DynamicComposite>
- Overrides:
getString
in class AbstractSerializer<DynamicComposite>
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<DynamicComposite>
- Overrides:
getNext
in class AbstractSerializer<DynamicComposite>
- Returns: