public class DecimalSerializer extends java.lang.Object implements TypeSerializer<java.math.BigDecimal>
| Modifier and Type | Field and Description |
|---|---|
static DecimalSerializer |
instance |
| Constructor and Description |
|---|
DecimalSerializer() |
| Modifier and Type | Method and Description |
|---|---|
java.math.BigDecimal |
deserialize(java.nio.ByteBuffer bytes) |
java.lang.Class<java.math.BigDecimal> |
getType() |
java.nio.ByteBuffer |
serialize(java.math.BigDecimal value) |
java.lang.String |
toString(java.math.BigDecimal value) |
void |
validate(java.nio.ByteBuffer bytes) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoCQLLiteralpublic static final DecimalSerializer instance
public java.math.BigDecimal deserialize(java.nio.ByteBuffer bytes)
deserialize in interface TypeSerializer<java.math.BigDecimal>public java.nio.ByteBuffer serialize(java.math.BigDecimal value)
serialize in interface TypeSerializer<java.math.BigDecimal>public void validate(java.nio.ByteBuffer bytes)
throws MarshalException
validate in interface TypeSerializer<java.math.BigDecimal>MarshalExceptionpublic java.lang.String toString(java.math.BigDecimal value)
toString in interface TypeSerializer<java.math.BigDecimal>public java.lang.Class<java.math.BigDecimal> getType()
getType in interface TypeSerializer<java.math.BigDecimal>Copyright © 2016 The Apache Software Foundation