Package | Description |
---|---|
com.datastax.driver.core |
The main package for the DataStax Java driver for Cassandra.
|
com.datastax.driver.core.exceptions |
Exceptions thrown by the DataStax Java driver for Cassandra.
|
com.datastax.driver.dse.search | |
com.datastax.driver.extras.codecs |
This package and its subpackages contain several convenience
TypeCodec s. |
com.datastax.driver.extras.codecs.arrays |
This package contains a collection of convenience
TypeCodec instances useful for serializing between CQL lists and Java arrays. |
com.datastax.driver.extras.codecs.enums |
This package contains a collection of convenience
TypeCodec instances useful for serializing between CQL types and Java enums. |
com.datastax.driver.extras.codecs.jdk8 |
This package contains a collection of convenience
TypeCodec instances useful for serializing between CQL types and Java 8 types, such as the ones
from the java.time API and java.util.Optional . |
com.datastax.driver.extras.codecs.joda |
This package contains a collection of convenience
TypeCodec instances useful for serializing between CQL types and Joda Time types such as DateTime . |
com.datastax.driver.extras.codecs.json |
This package contains a collection of convenience
TypeCodec
instances useful for serializing JSON structures. |
Modifier and Type | Method and Description |
---|---|
abstract T |
TypeCodec.deserialize(ByteBuffer bytes,
ProtocolVersion protocolVersion)
Deserialize the given
ByteBuffer instance according to the CQL type handled by this
codec. |
abstract String |
TypeCodec.format(T value)
Format the given value as a valid CQL literal according to the CQL type handled by this codec.
|
abstract T |
TypeCodec.parse(String value)
Parse the given CQL literal into an instance of the Java type handled by this codec.
|
abstract ByteBuffer |
TypeCodec.serialize(T value,
ProtocolVersion protocolVersion)
Serialize the given value according to the CQL type handled by this codec.
|
Modifier and Type | Method and Description |
---|---|
InvalidTypeException |
InvalidTypeException.copy() |
Modifier and Type | Method and Description |
---|---|
DateRange |
DateRangeCodec.deserialize(ByteBuffer bytes,
ProtocolVersion protocolVersion) |
String |
DateRangeCodec.format(DateRange dateRange) |
DateRange |
DateRangeCodec.parse(String value) |
ByteBuffer |
DateRangeCodec.serialize(DateRange dateRange,
ProtocolVersion protocolVersion) |
Modifier and Type | Method and Description |
---|---|
T |
ParsingCodec.deserialize(ByteBuffer bytes,
ProtocolVersion protocolVersion) |
O |
MappingCodec.deserialize(ByteBuffer bytes,
ProtocolVersion protocolVersion) |
String |
MappingCodec.format(O value) |
String |
ParsingCodec.format(T value) |
T |
ParsingCodec.parse(String value) |
O |
MappingCodec.parse(String value) |
ByteBuffer |
MappingCodec.serialize(O value,
ProtocolVersion protocolVersion) |
ByteBuffer |
ParsingCodec.serialize(T value,
ProtocolVersion protocolVersion) |
Modifier and Type | Method and Description |
---|---|
T |
AbstractPrimitiveArrayCodec.deserialize(ByteBuffer bytes,
ProtocolVersion protocolVersion) |
String |
AbstractArrayCodec.format(T array) |
T |
AbstractArrayCodec.parse(String value) |
ByteBuffer |
AbstractPrimitiveArrayCodec.serialize(T array,
ProtocolVersion protocolVersion) |
Modifier and Type | Method and Description |
---|---|
E |
EnumOrdinalCodec.deserialize(ByteBuffer bytes,
ProtocolVersion protocolVersion) |
String |
EnumOrdinalCodec.format(E value) |
E |
EnumOrdinalCodec.parse(String value) |
ByteBuffer |
EnumOrdinalCodec.serialize(E value,
ProtocolVersion protocolVersion) |
Modifier and Type | Method and Description |
---|---|
LocalTime |
LocalTimeCodec.deserialize(ByteBuffer bytes,
ProtocolVersion protocolVersion) |
ByteBuffer |
LocalTimeCodec.serialize(LocalTime value,
ProtocolVersion protocolVersion) |
Modifier and Type | Method and Description |
---|---|
org.joda.time.LocalTime |
LocalTimeCodec.deserialize(ByteBuffer bytes,
ProtocolVersion protocolVersion) |
ByteBuffer |
LocalTimeCodec.serialize(org.joda.time.LocalTime value,
ProtocolVersion protocolVersion) |
Modifier and Type | Method and Description |
---|---|
javax.json.JsonStructure |
Jsr353JsonCodec.deserialize(ByteBuffer bytes,
ProtocolVersion protocolVersion) |
T |
JacksonJsonCodec.deserialize(ByteBuffer bytes,
ProtocolVersion protocolVersion) |
String |
Jsr353JsonCodec.format(javax.json.JsonStructure value) |
String |
JacksonJsonCodec.format(T value) |
javax.json.JsonStructure |
Jsr353JsonCodec.parse(String value) |
T |
JacksonJsonCodec.parse(String value) |
ByteBuffer |
Jsr353JsonCodec.serialize(javax.json.JsonStructure value,
ProtocolVersion protocolVersion) |
ByteBuffer |
JacksonJsonCodec.serialize(T value,
ProtocolVersion protocolVersion) |
Copyright © 2012–2019. All rights reserved.