Package | Description |
---|---|
com.datastax.driver.core |
The main package for the DataStax Java driver for Cassandra.
|
com.datastax.driver.core.querybuilder |
A CQL3 query builder.
|
com.datastax.driver.core.schemabuilder |
A CQL3 schema builder.
|
com.datastax.driver.dse |
Modifier and Type | Field and Description |
---|---|
static CodecRegistry |
CodecRegistry.DEFAULT_INSTANCE
The default
CodecRegistry instance. |
Modifier and Type | Method and Description |
---|---|
protected CodecRegistry |
UDTValue.getCodecRegistry() |
protected CodecRegistry |
TupleValue.getCodecRegistry() |
CodecRegistry |
PreparedStatement.getCodecRegistry()
Return the
CodecRegistry instance associated with this prepared statement. |
CodecRegistry |
DefaultPreparedStatement.getCodecRegistry() |
CodecRegistry |
Configuration.getCodecRegistry()
Returns the
CodecRegistry instance for this configuration. |
CodecRegistry |
CodecRegistry.register(Iterable<? extends TypeCodec<?>> codecs)
Register the given codecs with this registry.
|
CodecRegistry |
CodecRegistry.register(TypeCodec<?>... codecs)
Register the given codecs with this registry.
|
CodecRegistry |
CodecRegistry.register(TypeCodec<?> newCodec)
Register the given codec with this registry.
|
Modifier and Type | Method and Description |
---|---|
Map<String,ByteBuffer> |
SimpleStatement.getNamedValues(ProtocolVersion protocolVersion,
CodecRegistry codecRegistry) |
abstract Map<String,ByteBuffer> |
RegularStatement.getNamedValues(ProtocolVersion protocolVersion,
CodecRegistry codecRegistry)
The named values to use for this statement.
|
String |
SimpleStatement.getQueryString(CodecRegistry codecRegistry) |
abstract String |
RegularStatement.getQueryString(CodecRegistry codecRegistry)
Returns the query string for this statement.
|
ByteBuffer |
StatementWrapper.getRoutingKey(ProtocolVersion protocolVersion,
CodecRegistry codecRegistry) |
abstract ByteBuffer |
Statement.getRoutingKey(ProtocolVersion protocolVersion,
CodecRegistry codecRegistry)
Returns the routing key (in binary raw form) to use for token aware
routing of this query.
|
ByteBuffer |
SimpleStatement.getRoutingKey(ProtocolVersion protocolVersion,
CodecRegistry codecRegistry)
Returns the routing key for the query.
|
ByteBuffer |
BoundStatement.getRoutingKey(ProtocolVersion protocolVersion,
CodecRegistry codecRegistry)
The routing key for this bound query.
|
ByteBuffer |
BatchStatement.getRoutingKey(ProtocolVersion protocolVersion,
CodecRegistry codecRegistry) |
ByteBuffer[] |
SimpleStatement.getValues(ProtocolVersion protocolVersion,
CodecRegistry codecRegistry) |
abstract ByteBuffer[] |
RegularStatement.getValues(ProtocolVersion protocolVersion,
CodecRegistry codecRegistry)
The positional values to use for this statement.
|
boolean |
SimpleStatement.hasValues(CodecRegistry codecRegistry) |
abstract boolean |
RegularStatement.hasValues(CodecRegistry codecRegistry)
Whether or not this statement has values, that is if
getValues
will return null or not. |
static TupleType |
TupleType.of(ProtocolVersion protocolVersion,
CodecRegistry codecRegistry,
DataType... types)
Creates a "disconnected" tuple type (you should prefer
cluster.getMetadata().newTupleType(...)
whenever possible). |
Statement |
StatementWrapper.setPagingState(PagingState pagingState,
CodecRegistry codecRegistry) |
Statement |
Statement.setPagingState(PagingState pagingState,
CodecRegistry codecRegistry)
Sets the paging state.
|
Configuration.Builder |
Configuration.Builder.withCodecRegistry(CodecRegistry codecRegistry)
Sets the codec registry for this cluster.
|
Cluster.Builder |
Cluster.Builder.withCodecRegistry(CodecRegistry codecRegistry)
Configures the
CodecRegistry instance to use for the new cluster. |
Modifier and Type | Method and Description |
---|---|
protected StringBuilder |
Truncate.buildQueryString(List<Object> variables,
CodecRegistry codecRegistry) |
Map<String,ByteBuffer> |
BuiltStatement.getNamedValues(ProtocolVersion protocolVersion,
CodecRegistry codecRegistry) |
Object |
BuiltStatement.getObject(int i,
CodecRegistry codecRegistry)
Returns the
i th value as the Java type matching its CQL type. |
String |
BuiltStatement.getQueryString(CodecRegistry codecRegistry) |
ByteBuffer |
BuiltStatement.getRoutingKey(ProtocolVersion protocolVersion,
CodecRegistry codecRegistry) |
ByteBuffer |
Batch.getRoutingKey(ProtocolVersion protocolVersion,
CodecRegistry codecRegistry)
Returns the first non-null routing key of the statements in this batch
or null otherwise.
|
ByteBuffer[] |
BuiltStatement.getValues(ProtocolVersion protocolVersion,
CodecRegistry codecRegistry) |
ByteBuffer[] |
Batch.getValues(ProtocolVersion protocolVersion,
CodecRegistry codecRegistry) |
boolean |
BuiltStatement.hasValues(CodecRegistry codecRegistry) |
Modifier and Type | Method and Description |
---|---|
Map<String,ByteBuffer> |
SchemaStatement.getNamedValues(ProtocolVersion protocolVersion,
CodecRegistry codecRegistry) |
String |
SchemaStatement.getQueryString(CodecRegistry codecRegistry) |
ByteBuffer |
SchemaStatement.getRoutingKey(ProtocolVersion protocolVersion,
CodecRegistry codecRegistry)
Returns the routing key (in binary raw form) to use for token aware
routing of this query.
|
ByteBuffer[] |
SchemaStatement.getValues(ProtocolVersion protocolVersion,
CodecRegistry codecRegistry) |
boolean |
SchemaStatement.hasValues(CodecRegistry codecRegistry) |
Modifier and Type | Method and Description |
---|---|
DseCluster.Builder |
DseCluster.Builder.withCodecRegistry(CodecRegistry codecRegistry) |