com.netflix.astyanax.serializers
Class BigDecimalSerializer
java.lang.Object
com.netflix.astyanax.serializers.AbstractSerializer<java.math.BigDecimal>
com.netflix.astyanax.serializers.BigDecimalSerializer
- All Implemented Interfaces:
- Serializer<java.math.BigDecimal>
public class BigDecimalSerializer
- extends AbstractSerializer<java.math.BigDecimal>
|
Method Summary |
java.math.BigDecimal |
fromByteBuffer(java.nio.ByteBuffer byteBuffer)
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 BigDecimalSerializer |
get()
|
ComparatorType |
getComparatorType()
|
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.math.BigDecimal 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, toBytesList, toBytesMap, toBytesSet |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BigDecimalSerializer
public BigDecimalSerializer()
get
public static BigDecimalSerializer get()
fromByteBuffer
public java.math.BigDecimal 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<java.math.BigDecimal>- Specified by:
fromByteBuffer in class AbstractSerializer<java.math.BigDecimal>
- Returns:
toByteBuffer
public java.nio.ByteBuffer toByteBuffer(java.math.BigDecimal obj)
- Description copied from interface:
Serializer
- Extract bytes from the obj of type T
- Specified by:
toByteBuffer in interface Serializer<java.math.BigDecimal>- Specified by:
toByteBuffer in class AbstractSerializer<java.math.BigDecimal>
- Returns:
getComparatorType
public ComparatorType getComparatorType()
- Specified by:
getComparatorType in interface Serializer<java.math.BigDecimal>- Overrides:
getComparatorType in class AbstractSerializer<java.math.BigDecimal>
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.math.BigDecimal>- Overrides:
fromString in class AbstractSerializer<java.math.BigDecimal>
- Returns:
getString
public java.lang.String getString(java.nio.ByteBuffer byteBuffer)
- Specified by:
getString in interface Serializer<java.math.BigDecimal>- Overrides:
getString in class AbstractSerializer<java.math.BigDecimal>
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.math.BigDecimal>- Overrides:
getNext in class AbstractSerializer<java.math.BigDecimal>
- Returns: