public class BigintToBigDecimalCodec extends AbstractCodec<BigDecimal> implements com.datastax.oss.driver.api.core.type.codec.TypeCodec<BigDecimal>
DataTypes.BIGINT and the Java type BigDecimal.| Constructor and Description |
|---|
BigintToBigDecimalCodec()
Constructor for
BigintToBigDecimalCodec. |
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
decode(ByteBuffer bytes,
com.datastax.oss.driver.api.core.ProtocolVersion protocolVersion) |
ByteBuffer |
encode(BigDecimal value,
com.datastax.oss.driver.api.core.ProtocolVersion protocolVersion) |
com.datastax.oss.driver.api.core.type.DataType |
getCqlType() |
com.datastax.oss.driver.api.core.type.reflect.GenericType<BigDecimal> |
getJavaType() |
format, parsepublic BigintToBigDecimalCodec()
BigintToBigDecimalCodec.@Nonnull public com.datastax.oss.driver.api.core.type.reflect.GenericType<BigDecimal> getJavaType()
getJavaType in interface com.datastax.oss.driver.api.core.type.codec.TypeCodec<BigDecimal>@Nonnull public com.datastax.oss.driver.api.core.type.DataType getCqlType()
getCqlType in interface com.datastax.oss.driver.api.core.type.codec.TypeCodec<BigDecimal>public ByteBuffer encode(BigDecimal value, @Nonnull com.datastax.oss.driver.api.core.ProtocolVersion protocolVersion)
encode in interface com.datastax.oss.driver.api.core.type.codec.TypeCodec<BigDecimal>public BigDecimal decode(ByteBuffer bytes, @Nonnull com.datastax.oss.driver.api.core.ProtocolVersion protocolVersion)
decode in interface com.datastax.oss.driver.api.core.type.codec.TypeCodec<BigDecimal>Copyright © 2020–2024 ING Bank. All rights reserved.