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