Package | Description |
---|---|
com.datastax.driver.core |
The main package for the DataStax Java driver for Cassandra.
|
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 |
Modifier and Type | Field and Description |
---|---|
protected TupleType |
TypeCodec.AbstractTupleCodec.definition |
Modifier and Type | Method and Description |
---|---|
TupleType |
TupleValue.getType()
The tuple type this is a value of.
|
TupleType |
Metadata.newTupleType(DataType... types)
Creates a tuple type given a list of types.
|
TupleType |
Metadata.newTupleType(List<DataType> types)
Creates a tuple type given a list of types.
|
static TupleType |
TupleType.of(ProtocolVersion protocolVersion,
CodecRegistry codecRegistry,
DataType... types)
Creates a "disconnected" tuple type (you should prefer
cluster.getMetadata().newTupleType(...)
whenever possible). |
Modifier and Type | Method and Description |
---|---|
boolean |
TupleType.contains(TupleType other)
Return
true if this tuple type contains the given tuple type,
and false otherwise. |
static TypeCodec<TupleValue> |
TypeCodec.tuple(TupleType type)
Return a newly-created codec for the given CQL tuple type.
|
Constructor and Description |
---|
AbstractTupleCodec(TupleType definition,
Class<T> javaClass) |
AbstractTupleCodec(TupleType definition,
TypeToken<T> javaType) |
Constructor and Description |
---|
ZonedDateTimeCodec(TupleType tupleType)
Creates a new
ZonedDateTimeCodec for the given tuple
and with default formatters for
both the timestamp and the zone components. |
ZonedDateTimeCodec(TupleType tupleType,
DateTimeFormatter dateTimeFormatter,
DateTimeFormatter zoneFormatter)
Creates a new
ZonedDateTimeCodec for the given tuple
and with the provided formatters for
the timestamp and the zone components of the tuple. |
Constructor and Description |
---|
DateTimeCodec(TupleType tupleType)
Creates a new
DateTimeCodec for the given tuple,
using a default parser and a default printer to handle
the timestamp component of the tuple. |
DateTimeCodec(TupleType tupleType,
DateTimeFormatter parser,
DateTimeFormatter printer)
Creates a new
DateTimeCodec for the given tuple,
using the provided parser and printer
to format and print the timestamp component of the tuple. |
Copyright © 2012–2018. All rights reserved.