See Creating a table.
See Creating a table.
The returned CompletionStage
is completed when the table has been created,
or if the statement fails.
Prepare, bind and execute one statement in one go.
Prepare, bind and execute one statement in one go.
See Inserting and updating data.
The configured write consistency level is used.
The returned CompletionStage
is completed when the statement has been
successfully executed, or if it fails.
Execute one statement.
Execute one statement. First you must #prepare the statement and bind its parameters.
See Inserting and updating data.
The configured write consistency level is used if a specific consistency
level has not been set on the Statement
.
The returned CompletionStage
is completed when the statement has been
successfully executed, or if it fails.
Execute several statements in a batch.
Execute several statements in a batch. First you must #prepare the statements and bind its parameters.
See Batching data insertion and updates.
The configured write consistency level is used if a specific consistency
level has not been set on the BatchStatement
.
The returned CompletionStage
is completed when the batch has been
successfully executed, or if it fails.
Create a PreparedStatement
that can be bound and used in
executeWrite
or select
multiple times.
Prepare, bind and execute a select statement in one go.
Prepare, bind and execute a select statement in one go.
See Querying tables.
The configured read consistency level is used.
You can return this Source
as a response in a ServiceCall
and the elements will be streamed to the client.
Otherwise you have to connect a Sink
that consumes the messages from
this Source
and then run
the stream.
Execute a select statement.
Execute a select statement. First you must #prepare the statement and bind its parameters.
See Querying tables.
The configured read consistency level is used if a specific consistency
level has not been set on the Statement
.
You can return this Source
as a response in a ServiceCall
and the elements will be streamed to the client.
Otherwise you have to connect a Sink
that consumes the messages from
this Source
and then run
the stream.
Prepare, bind and execute a select statement in one go.
Prepare, bind and execute a select statement in one go. Only use this method
when you know that the result is small, e.g. includes a LIMIT
clause.
Otherwise you should use the select
method that returns a Source
.
The configured read consistency level is used.
The returned CompletionStage
is completed with the found rows.
Execute a select statement.
Execute a select statement. First you must #prepare the statement and
bind its parameters. Only use this method when you know that the result
is small, e.g. includes a LIMIT
clause. Otherwise you should use the
select
method that returns a Source
.
The configured read consistency level is used if a specific consistency
level has not been set on the Statement
.
The returned CompletionStage
is completed with the found rows.
Prepare, bind and execute a select statement that returns one row.
Prepare, bind and execute a select statement that returns one row.
The configured read consistency level is used.
The returned CompletionStage
is completed with the first row,
if any.
Execute a select statement that returns one row.
Execute a select statement that returns one row. First you must #prepare the statement and bind its parameters.
The configured read consistency level is used if a specific consistency
level has not been set on the Statement
.
The returned CompletionStage
is completed with the first row,
if any.
The Session
of the underlying
Datastax Java Driver.
The Session
of the underlying
Datastax Java Driver.
Can be used in case you need to do something that is not provided by the
API exposed by this class. Be careful to not use blocking calls.
Data Access Object for Cassandra. The statements are expressed in Cassandra Query Language (CQL) syntax.
The configured keyspace is automatically created if it doesn't already exists. The keyspace is also set as the current keyspace, i.e. it doesn't have to be qualified in the statements.
All methods are non-blocking.