Package | Description |
---|---|
org.springframework.cassandra.core |
CQL core support.
|
org.springframework.data.cassandra.core |
Apache Cassandra core support.
|
Modifier and Type | Class and Description |
---|---|
class |
WriteOptions
Cassandra Write Options are an extension to
QueryOptions for write operations. |
Modifier and Type | Method and Description |
---|---|
QueryOptions |
QueryOptions.QueryOptionsBuilder.build()
Builds a new
QueryOptions with the configured values. |
Modifier and Type | Method and Description |
---|---|
static com.datastax.driver.core.PreparedStatement |
CqlTemplate.addPreparedStatementOptions(com.datastax.driver.core.PreparedStatement preparedStatement,
QueryOptions queryOptions)
Add common
QueryOptions to Cassandra PreparedStatement s. |
static <T extends com.datastax.driver.core.Statement> |
CqlTemplate.addQueryOptions(T statement,
QueryOptions queryOptions)
Add common
QueryOptions to all types of queries. |
protected com.datastax.driver.core.ResultSet |
CqlTemplate.doExecute(String cql,
QueryOptions queryOptions) |
protected Cancellable |
CqlTemplate.doExecuteAsync(com.datastax.driver.core.Statement statement,
AsynchronousQueryListener listener,
QueryOptions queryOptions) |
void |
CqlTemplate.execute(String cql,
QueryOptions options) |
void |
CqlOperations.execute(String cql,
QueryOptions options)
Executes the supplied CQL Query and returns nothing.
|
com.datastax.driver.core.ResultSetFuture |
CqlTemplate.executeAsynchronously(String cql,
QueryOptions queryOptions) |
com.datastax.driver.core.ResultSetFuture |
CqlOperations.executeAsynchronously(String cql,
QueryOptions options)
Executes the supplied Query Asynchronously and returns nothing.
|
<T> T |
CqlTemplate.query(PreparedStatementCreator preparedStatementCreator,
PreparedStatementBinder preparedStatementBinder,
ResultSetExtractor<T> resultSetExtractor,
QueryOptions queryOptions) |
<T> T |
CqlOperations.query(PreparedStatementCreator psc,
PreparedStatementBinder psb,
ResultSetExtractor<T> rse,
QueryOptions options)
Uses the provided PreparedStatementCreator to prepare a new Session call.
|
void |
CqlTemplate.query(PreparedStatementCreator preparedStatementCreator,
PreparedStatementBinder preparedStatementBinder,
RowCallbackHandler rowCallbackHandler,
QueryOptions queryOptions) |
void |
CqlOperations.query(PreparedStatementCreator psc,
PreparedStatementBinder psb,
RowCallbackHandler rch,
QueryOptions options)
Uses the provided PreparedStatementCreator to prepare a new Session call.
|
<T> List<T> |
CqlTemplate.query(PreparedStatementCreator preparedStatementCreator,
PreparedStatementBinder preparedStatementBinder,
RowMapper<T> rowMapper,
QueryOptions queryOptions) |
<T> List<T> |
CqlOperations.query(PreparedStatementCreator psc,
PreparedStatementBinder psb,
RowMapper<T> rowMapper,
QueryOptions options)
Uses the provided PreparedStatementCreator to prepare a new Session call.
|
<T> T |
CqlTemplate.query(PreparedStatementCreator preparedStatementCreator,
ResultSetExtractor<T> resultSetExtractor,
QueryOptions queryOptions) |
<T> T |
CqlOperations.query(PreparedStatementCreator psc,
ResultSetExtractor<T> rse,
QueryOptions options)
Uses the provided PreparedStatementCreator to prepare a new Session call.
|
void |
CqlTemplate.query(PreparedStatementCreator preparedStatementCreator,
RowCallbackHandler rowCallbackHandler,
QueryOptions queryOptions) |
void |
CqlOperations.query(PreparedStatementCreator psc,
RowCallbackHandler rch,
QueryOptions options)
Uses the provided PreparedStatementCreator to prepare a new Session call.
|
<T> List<T> |
CqlTemplate.query(PreparedStatementCreator preparedStatementCreator,
RowMapper<T> rowMapper,
QueryOptions queryOptions) |
<T> List<T> |
CqlOperations.query(PreparedStatementCreator psc,
RowMapper<T> rowMapper,
QueryOptions options)
Uses the provided PreparedStatementCreator to prepare a new Session call.
|
<T> T |
CqlTemplate.query(String cql,
PreparedStatementBinder preparedStatementBinder,
ResultSetExtractor<T> resultSetExtractor,
QueryOptions queryOptions) |
<T> T |
CqlOperations.query(String cql,
PreparedStatementBinder psb,
ResultSetExtractor<T> rse,
QueryOptions options)
Converts the CQL provided into a
CachedPreparedStatementCreator . |
void |
CqlTemplate.query(String cql,
PreparedStatementBinder preparedStatementBinder,
RowCallbackHandler rowCallbackHandler,
QueryOptions queryOptions) |
void |
CqlOperations.query(String cql,
PreparedStatementBinder psb,
RowCallbackHandler rch,
QueryOptions options)
Converts the CQL provided into a
CachedPreparedStatementCreator . |
<T> List<T> |
CqlTemplate.query(String cql,
PreparedStatementBinder preparedStatementBinder,
RowMapper<T> rowMapper,
QueryOptions queryOptions) |
<T> List<T> |
CqlOperations.query(String cql,
PreparedStatementBinder psb,
RowMapper<T> rowMapper,
QueryOptions options)
Converts the CQL provided into a
CachedPreparedStatementCreator . |
com.datastax.driver.core.ResultSet |
CqlTemplate.query(String cql,
QueryOptions queryOptions) |
com.datastax.driver.core.ResultSet |
CqlOperations.query(String cql,
QueryOptions options)
Executes the provided CQL query with the given
QueryOptions and returns the ResultSet . |
<T> T |
CqlTemplate.query(String cql,
ResultSetExtractor<T> resultSetExtractor,
QueryOptions queryOptions) |
<T> T |
CqlOperations.query(String cql,
ResultSetExtractor<T> rse,
QueryOptions options)
Executes the provided CQL Query, and extracts the results with the ResultSetExtractor.
|
void |
CqlTemplate.query(String cql,
RowCallbackHandler rowCallbackHandler,
QueryOptions queryOptions) |
void |
CqlOperations.query(String cql,
RowCallbackHandler rch,
QueryOptions options)
Executes the provided CQL Query, and then processes the results with the
RowCallbackHandler . |
<T> List<T> |
CqlTemplate.query(String cql,
RowMapper<T> rowMapper,
QueryOptions queryOptions) |
<T> List<T> |
CqlOperations.query(String cql,
RowMapper<T> rowMapper,
QueryOptions options)
Executes the provided CQL Query, and maps all Rows returned with the supplied RowMapper.
|
Cancellable |
CqlTemplate.queryAsynchronously(String cql,
AsynchronousQueryListener listener,
QueryOptions queryOptions) |
Cancellable |
CqlOperations.queryAsynchronously(String cql,
AsynchronousQueryListener listener,
QueryOptions options)
Executes the provided CQL Query with the provided Listener and Query Options.
|
Cancellable |
CqlTemplate.queryAsynchronously(String cql,
AsynchronousQueryListener listener,
QueryOptions queryOptions,
Executor executor) |
Cancellable |
CqlOperations.queryAsynchronously(String cql,
AsynchronousQueryListener listener,
QueryOptions options,
Executor executor)
Executes the provided CQL Query with the provided Listener, Executor and Query Options.
|
com.datastax.driver.core.ResultSetFuture |
CqlTemplate.queryAsynchronously(String cql,
QueryOptions queryOptions) |
com.datastax.driver.core.ResultSetFuture |
CqlOperations.queryAsynchronously(String cql,
QueryOptions options)
Executes the provided CQL Query and returns the ResultSetFuture for user processing.
|
<T> T |
CqlTemplate.queryAsynchronously(String cql,
ResultSetExtractor<T> resultSetExtractor,
Long timeout,
TimeUnit timeUnit,
QueryOptions options) |
<T> T |
CqlOperations.queryAsynchronously(String cql,
ResultSetExtractor<T> rse,
Long timeout,
TimeUnit timeUnit,
QueryOptions options)
Executes the provided CQL Query, and extracts the results with the ResultSetExtractor.
|
<T> T |
CqlTemplate.queryAsynchronously(String cql,
ResultSetFutureExtractor<T> resultSetFutureExtractor,
QueryOptions queryOptions) |
Cancellable |
CqlTemplate.queryAsynchronously(String cql,
Runnable listener,
QueryOptions queryOptions) |
Cancellable |
CqlOperations.queryAsynchronously(String cql,
Runnable listener,
QueryOptions options)
Executes the provided CQL Query with the Runnable implementations using the Query Options.
|
Cancellable |
CqlTemplate.queryAsynchronously(String cql,
Runnable listener,
QueryOptions queryOptions,
Executor executor) |
Cancellable |
CqlOperations.queryAsynchronously(String cql,
Runnable listener,
QueryOptions options,
Executor executor)
Executes the provided CQL Query with the provided Executor and Runnable implementations.
|
Cancellable |
CqlTemplate.queryForListOfMapAsynchronously(String cql,
QueryForListListener<Map<String,Object>> listener,
QueryOptions queryOptions) |
Cancellable |
CqlOperations.queryForListOfMapAsynchronously(String cql,
QueryForListListener<Map<String,Object>> listener,
QueryOptions options)
|
Cancellable |
CqlTemplate.queryForMapAsynchronously(String cql,
QueryForMapListener listener,
QueryOptions queryOptions) |
Cancellable |
CqlOperations.queryForMapAsynchronously(String cql,
QueryForMapListener listener,
QueryOptions options)
Executes the provided CQL query asynchronously and maps the first row to a
Map <String,Object>. |
<T> Cancellable |
CqlTemplate.queryForObjectAsynchronously(String cql,
Class<T> requiredType,
QueryForObjectListener<T> listener,
QueryOptions options) |
<T> Cancellable |
CqlOperations.queryForObjectAsynchronously(String cql,
Class<T> requiredType,
QueryForObjectListener<T> listener,
QueryOptions options)
Executes the provided select CQL query and returns the first column of the first Row as an object of type
T . |
<T> Cancellable |
CqlTemplate.queryForObjectAsynchronously(String cql,
RowMapper<T> rowMapper,
QueryForObjectListener<T> listener,
QueryOptions options) |
<T> Cancellable |
CqlOperations.queryForObjectAsynchronously(String cql,
RowMapper<T> rowMapper,
QueryForObjectListener<T> listener,
QueryOptions options)
Executes the provided string CQL query, and maps the first row returned with the supplied
RowMapper . |
Modifier and Type | Method and Description |
---|---|
static <T> com.datastax.driver.core.querybuilder.Batch |
CassandraTemplate.createDeleteBatchQuery(String tableName,
List<T> objectsToDelete,
QueryOptions options,
EntityWriter<Object,Object> entityWriter)
Create a Batch Query object for multiple deletes.
|
static com.datastax.driver.core.querybuilder.Delete |
CassandraTemplate.createDeleteQuery(String tableName,
Object objectToDelete,
QueryOptions options,
EntityWriter<Object,Object> entityWriter)
Create a Delete Query Object from an annotated POJO.
|
<T> void |
CassandraTemplate.delete(List<T> entities,
QueryOptions options) |
<T> void |
CassandraOperations.delete(List<T> entities,
QueryOptions options)
Deprecated.
as of 1.5. This method accepts a
List of entities and deletes all entities in a batch. That's
not transparent to users and a Cassandra anti-pattern if used with multiple partition keys. Please use
CassandraOperations.batchOps() for if your intent is batching or issue multiple calls to
#delete(Object, WriteOptions) as that's the preferred approach. This method will be removed in
Version 2.0. |
<T> void |
CassandraTemplate.delete(T entity,
QueryOptions options) |
<T> void |
CassandraOperations.delete(T entity,
QueryOptions options)
Remove the given object from the table by id.
|
<T> Cancellable |
CassandraTemplate.deleteAsynchronously(List<T> entities,
DeletionListener<T> listener,
QueryOptions options) |
<T> Cancellable |
CassandraOperations.deleteAsynchronously(List<T> entities,
DeletionListener<T> listener,
QueryOptions options)
Deprecated.
as of 1.5. This method accepts a
List of entities and deletes all entities in a batch. That's
not transparent to users and a Cassandra anti-pattern if used with multiple partition keys. This method
will be removed in Version 2.0. |
<T> Cancellable |
CassandraTemplate.deleteAsynchronously(List<T> entities,
QueryOptions options) |
<T> Cancellable |
CassandraOperations.deleteAsynchronously(List<T> entities,
QueryOptions options)
Deprecated.
as of 1.5. This method accepts a
List of entities and deletes all entities in a batch. That's
not transparent to users and a Cassandra anti-pattern if used with multiple partition keys. This method
will be removed in Version 2.0. |
<T> Cancellable |
CassandraTemplate.deleteAsynchronously(T entity,
DeletionListener<T> listener,
QueryOptions options) |
<T> Cancellable |
CassandraOperations.deleteAsynchronously(T entity,
DeletionListener<T> listener,
QueryOptions options)
Remove the given object from the table by id.
|
<T> Cancellable |
CassandraTemplate.deleteAsynchronously(T entity,
QueryOptions options) |
<T> Cancellable |
CassandraOperations.deleteAsynchronously(T entity,
QueryOptions options)
Remove the given object from the table by id.
|
protected <T> void |
CassandraTemplate.doBatchDelete(List<T> entities,
QueryOptions options) |
protected <T> Cancellable |
CassandraTemplate.doBatchDeleteAsync(List<T> entities,
DeletionListener<T> listener,
QueryOptions options) |
protected <T> void |
CassandraTemplate.doDelete(T entity,
QueryOptions options) |
protected <T> Cancellable |
CassandraTemplate.doDeleteAsync(T entity,
DeletionListener<T> listener,
QueryOptions options) |
protected <T> Cancellable |
CassandraTemplate.doSelectOneAsync(Object query,
Class<T> entityClass,
QueryForObjectListener<T> listener,
QueryOptions options) |
<T> Cancellable |
CassandraTemplate.selectOneAsynchronously(com.datastax.driver.core.querybuilder.Select select,
Class<T> entityClass,
QueryForObjectListener<T> listener,
QueryOptions options) |
<T> Cancellable |
CassandraOperations.selectOneAsynchronously(com.datastax.driver.core.querybuilder.Select select,
Class<T> entityClass,
QueryForObjectListener<T> listener,
QueryOptions options)
Executes the
Select query asynchronously. |
<T> Cancellable |
CassandraTemplate.selectOneAsynchronously(String cql,
Class<T> entityClass,
QueryForObjectListener<T> listener,
QueryOptions options) |
<T> Cancellable |
CassandraOperations.selectOneAsynchronously(String cql,
Class<T> entityClass,
QueryForObjectListener<T> listener,
QueryOptions options)
Executes the string CQL query asynchronously.
|
Copyright © 2011-2015–2017 Pivotal Software, Inc.. All rights reserved.