Package | Description |
---|---|
org.springframework.cassandra.core |
CQL core support.
|
org.springframework.data.cassandra.core |
Apache Cassandra core support.
|
Modifier and Type | Method and Description |
---|---|
WriteOptions |
WriteOptions.WriteOptionsBuilder.build()
Builds a new
WriteOptions with the configured values. |
Modifier and Type | Method and Description |
---|---|
static com.datastax.driver.core.querybuilder.Insert |
CqlTemplate.addWriteOptions(com.datastax.driver.core.querybuilder.Insert insert,
WriteOptions writeOptions)
Add common
WriteOptions options to Insert CQL statements. |
static com.datastax.driver.core.querybuilder.Update |
CqlTemplate.addWriteOptions(com.datastax.driver.core.querybuilder.Update update,
WriteOptions writeOptions)
Add common
WriteOptions options to Update CQL statements. |
void |
CqlOperations.ingest(String cql,
List<List<?>> rows,
WriteOptions options)
This is an operation designed for high performance writes.
|
void |
CqlTemplate.ingest(String cql,
List<List<?>> rows,
WriteOptions writeOptions) |
void |
CqlOperations.ingest(String cql,
Object[][] rows,
WriteOptions options)
This is an operation designed for high performance writes.
|
void |
CqlTemplate.ingest(String cql,
Object[][] rows,
WriteOptions writeOptions) |
void |
CqlOperations.ingest(String cql,
RowIterator rowIterator,
WriteOptions options)
This is an operation designed for high performance writes.
|
void |
CqlTemplate.ingest(String cql,
RowIterator rowIterator,
WriteOptions options) |
Modifier and Type | Method and Description |
---|---|
static <T> com.datastax.driver.core.querybuilder.Batch |
CassandraTemplate.createInsertBatchQuery(String tableName,
List<T> objectsToInsert,
WriteOptions options,
EntityWriter<Object,Object> entityWriter)
Generates a Batch Object for multiple inserts.
|
static com.datastax.driver.core.querybuilder.Insert |
CassandraTemplate.createInsertQuery(String tableName,
Object objectToUpdate,
WriteOptions options,
EntityWriter<Object,Object> entityWriter)
Generates a Query Object for an insert.
|
static <T> com.datastax.driver.core.querybuilder.Batch |
CassandraTemplate.createUpdateBatchQuery(String tableName,
List<T> objectsToUpdate,
WriteOptions options,
EntityWriter<Object,Object> entityWriter)
Generates a Batch Object for multiple Updates.
|
static com.datastax.driver.core.querybuilder.Update |
CassandraTemplate.createUpdateQuery(String tableName,
Object objectToUpdate,
WriteOptions options,
EntityWriter<Object,Object> entityWriter)
Generates a Query Object for an Update.
|
protected <T> List<T> |
CassandraTemplate.doBatchInsert(List<T> entities,
WriteOptions options) |
protected <T> Cancellable |
CassandraTemplate.doBatchInsertAsync(List<T> entities,
WriteListener<T> listener,
WriteOptions options)
Asynchronously performs a batch insert or update.
|
protected <T> List<T> |
CassandraTemplate.doBatchUpdate(List<T> entities,
WriteOptions options) |
protected <T> Cancellable |
CassandraTemplate.doBatchUpdateAsync(List<T> entities,
WriteListener<T> listener,
WriteOptions options)
Asynchronously performs a batch insert or update.
|
protected <T> List<T> |
CassandraTemplate.doBatchWrite(List<T> entities,
WriteOptions options,
boolean insert) |
protected <T> Cancellable |
CassandraTemplate.doBatchWriteAsync(List<T> entities,
WriteListener<T> listener,
WriteOptions options,
boolean insert)
Asynchronously performs a batch insert or update.
|
protected <T> T |
CassandraTemplate.doInsert(T entity,
WriteOptions options) |
protected <T> Cancellable |
CassandraTemplate.doInsertAsync(T entity,
WriteListener<T> listener,
WriteOptions options) |
protected <T> Cancellable |
CassandraTemplate.doInsertAsynchronously(List<T> entities,
WriteListener<T> listener,
WriteOptions options)
This method resolves ambiguity the compiler sees as a result of type erasure between
CassandraTemplate.insertAsynchronously(Object, WriteListener, WriteOptions)
and CassandraTemplate.insertAsynchronously(List, WriteListener, WriteOptions) . |
protected <T> T |
CassandraTemplate.doUpdate(T entity,
WriteOptions options) |
protected <T> Cancellable |
CassandraTemplate.doUpdateAsync(T entity,
WriteListener<T> listener,
WriteOptions options) |
protected <T> Cancellable |
CassandraTemplate.doUpdateAsynchronously(List<T> entities,
WriteListener<T> listener,
WriteOptions options)
This method resolves ambiguity the compiler sees as a result of type erasure between
CassandraTemplate.updateAsynchronously(Object, WriteListener, WriteOptions)
and CassandraTemplate.updateAsynchronously(List, WriteListener, WriteOptions) . |
<T> List<T> |
CassandraOperations.insert(List<T> entities,
WriteOptions options)
Deprecated.
as of 1.5. This method accepts a
List of entities and inserts 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
CassandraOperations.insert(Object, WriteOptions) as that's the preferred approach. This method will be removed in
Version 2.0. |
<T> List<T> |
CassandraTemplate.insert(List<T> entities,
WriteOptions options) |
<T> T |
CassandraOperations.insert(T entity,
WriteOptions options)
Insert the given entity without inserting null values.
|
<T> T |
CassandraTemplate.insert(T entity,
WriteOptions options) |
<T> Cancellable |
CassandraOperations.insertAsynchronously(List<T> entities,
WriteListener<T> listener,
WriteOptions 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.insertAsynchronously(List<T> entities,
WriteListener<T> listener,
WriteOptions options) |
<T> List<T> |
CassandraOperations.insertAsynchronously(List<T> entities,
WriteOptions options)
Deprecated.
as of 1.2, this method does not allow for query cancellation or notification of completion. Favor
CassandraOperations.insertAsynchronously(List, WriteListener, WriteOptions) . |
<T> List<T> |
CassandraTemplate.insertAsynchronously(List<T> entities,
WriteOptions options)
Deprecated.
|
<T> Cancellable |
CassandraOperations.insertAsynchronously(T entity,
WriteListener<T> listener,
WriteOptions options)
Inserts the given entity asynchronously.
|
<T> Cancellable |
CassandraTemplate.insertAsynchronously(T entity,
WriteListener<T> listener,
WriteOptions options) |
<T> T |
CassandraOperations.insertAsynchronously(T entity,
WriteOptions options)
Deprecated.
as of 1.2, this method does not allow for query cancellation or notification of completion. Favor
CassandraOperations.insertAsynchronously(Object, WriteListener, WriteOptions) . |
<T> T |
CassandraTemplate.insertAsynchronously(T entity,
WriteOptions options)
Deprecated.
|
static <T> com.datastax.driver.core.querybuilder.Batch |
CassandraTemplate.toUpdateBatchQuery(String tableName,
List<T> objectsToUpdate,
WriteOptions options,
EntityWriter<Object,Object> entityWriter)
Deprecated.
as of 1.2, method renamed. Use
CassandraTemplate.createUpdateBatchQuery(String, List, WriteOptions, EntityWriter) |
static com.datastax.driver.core.querybuilder.Update |
CassandraTemplate.toUpdateQueryX(String tableName,
Object objectToUpdate,
WriteOptions options,
EntityWriter<Object,Object> entityWriter)
Deprecated.
as of 1.2, method renamed. Use
CassandraTemplate.createUpdateQuery(String, Object, WriteOptions, EntityWriter) |
<T> List<T> |
CassandraOperations.update(List<T> entities,
WriteOptions options)
Deprecated.
as of 1.5. This method accepts a
List of entities and updates 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
CassandraOperations.update(Object, WriteOptions) as that's the preferred approach. This method will be removed in
Version 2.0. |
<T> List<T> |
CassandraTemplate.update(List<T> entities,
WriteOptions options) |
<T> T |
CassandraOperations.update(T entity,
WriteOptions options)
Update the given entity.
|
<T> T |
CassandraTemplate.update(T entity,
WriteOptions options) |
<T> Cancellable |
CassandraOperations.updateAsynchronously(List<T> entities,
WriteListener<T> listener,
WriteOptions 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.updateAsynchronously(List<T> entities,
WriteListener<T> listener,
WriteOptions options) |
<T> List<T> |
CassandraOperations.updateAsynchronously(List<T> entities,
WriteOptions options)
Deprecated.
as of 1.2, this method does not allow for query cancellation or notification of completion. Favor
CassandraOperations.updateAsynchronously(List, WriteListener, WriteOptions) . |
<T> List<T> |
CassandraTemplate.updateAsynchronously(List<T> entities,
WriteOptions options) |
<T> Cancellable |
CassandraOperations.updateAsynchronously(T entity,
WriteListener<T> listener,
WriteOptions options)
Updates the given entity asynchronously.
|
<T> Cancellable |
CassandraTemplate.updateAsynchronously(T entity,
WriteListener<T> listener,
WriteOptions options) |
<T> T |
CassandraOperations.updateAsynchronously(T entity,
WriteOptions options)
Deprecated.
as of 1.2, this method does not allow for query cancellation or notification of completion. Favor
CassandraOperations.updateAsynchronously(Object, WriteListener, WriteOptions) . |
<T> T |
CassandraTemplate.updateAsynchronously(T entity,
WriteOptions options) |
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.