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