Package | Description |
---|---|
org.springframework.cassandra.core | |
org.springframework.data.cassandra.core |
Modifier and Type | Method and Description |
---|---|
static com.datastax.driver.core.querybuilder.Insert |
CqlTemplate.addWriteOptions(com.datastax.driver.core.querybuilder.Insert q,
WriteOptions options)
Add common
Query options for Insert queries. |
static com.datastax.driver.core.querybuilder.Update |
CqlTemplate.addWriteOptions(com.datastax.driver.core.querybuilder.Update q,
WriteOptions options)
Add common
Query options for Update queries. |
void |
CqlTemplate.ingest(String cql,
List<List<?>> rows,
WriteOptions options) |
void |
CqlOperations.ingest(String cql,
List<List<?>> rows,
WriteOptions options)
This is an operation designed for high performance writes.
|
void |
CqlTemplate.ingest(String cql,
Object[][] rows,
WriteOptions options) |
void |
CqlOperations.ingest(String cql,
Object[][] rows,
WriteOptions options)
This is an operation designed for high performance writes.
|
void |
CqlTemplate.ingest(String cql,
RowIterator rowIterator,
WriteOptions options) |
void |
CqlOperations.ingest(String cql,
RowIterator rowIterator,
WriteOptions options)
This is an operation designed for high performance writes.
|
Modifier and Type | Method and Description |
---|---|
static <T> com.datastax.driver.core.querybuilder.Batch |
CassandraTemplate.createInsertBatchQuery(String tableName,
List<T> entities,
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 objectToSave,
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> objectsToSave,
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 objectToSave,
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 #insertAsynchronously(List . |
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 #updateAsynchronously(List . |
<T> List<T> |
CassandraTemplate.insert(List<T> entities,
WriteOptions options) |
<T> List<T> |
CassandraOperations.insert(List<T> entities,
WriteOptions options)
Insert the given list of entities.
|
<T> T |
CassandraTemplate.insert(T entity,
WriteOptions options) |
<T> T |
CassandraOperations.insert(T entity,
WriteOptions options)
Insert the given entity.
|
<T> Cancellable |
CassandraTemplate.insertAsynchronously(List<T> entities,
WriteListener<T> listener,
WriteOptions options) |
<T> Cancellable |
CassandraOperations.insertAsynchronously(List<T> entities,
WriteListener<T> listener,
WriteOptions options)
Inserts the given entities asynchronously in a batch.
|
<T> List<T> |
CassandraTemplate.insertAsynchronously(List<T> entities,
WriteOptions options)
Deprecated.
|
<T> List<T> |
CassandraOperations.insertAsynchronously(List<T> entities,
WriteOptions options)
Deprecated.
This method does not allow for query cancellation or notification of completion. Favor
CassandraOperations.insertAsynchronously(List, WriteListener, WriteOptions) . |
<T> Cancellable |
CassandraTemplate.insertAsynchronously(T entity,
WriteListener<T> listener,
WriteOptions options) |
<T> Cancellable |
CassandraOperations.insertAsynchronously(T entity,
WriteListener<T> listener,
WriteOptions options)
Inserts the given entity asynchronously.
|
<T> T |
CassandraTemplate.insertAsynchronously(T entity,
WriteOptions options)
Deprecated.
See
CqlOperations#insert(Object,WriteOptions) |
<T> T |
CassandraOperations.insertAsynchronously(T entity,
WriteOptions options)
Deprecated.
This method does not allow for query cancellation or notification of completion. Favor
CassandraOperations.insertAsynchronously(Object, WriteListener, WriteOptions) . |
static <T> com.datastax.driver.core.querybuilder.Batch |
CassandraTemplate.toUpdateBatchQuery(String tableName,
List<T> objectsToSave,
WriteOptions options,
EntityWriter<Object,Object> entityWriter)
Deprecated.
|
static com.datastax.driver.core.querybuilder.Update |
CassandraTemplate.toUpdateQueryX(String tableName,
Object objectToSave,
WriteOptions options,
EntityWriter<Object,Object> entityWriter)
Deprecated.
Method renamed. Use
CassandraTemplate.createUpdateQuery(String, Object, WriteOptions, EntityWriter) |
<T> List<T> |
CassandraTemplate.update(List<T> entities,
WriteOptions options) |
<T> List<T> |
CassandraOperations.update(List<T> entities,
WriteOptions options)
Update the given list of entities.
|
<T> T |
CassandraTemplate.update(T entity,
WriteOptions options) |
<T> T |
CassandraOperations.update(T entity,
WriteOptions options)
Update the given entity.
|
<T> Cancellable |
CassandraTemplate.updateAsynchronously(List<T> entities,
WriteListener<T> listener,
WriteOptions options) |
<T> Cancellable |
CassandraOperations.updateAsynchronously(List<T> entities,
WriteListener<T> listener,
WriteOptions options)
Updates the given entities asynchronously in a batch.
|
<T> List<T> |
CassandraTemplate.updateAsynchronously(List<T> entities,
WriteOptions options) |
<T> List<T> |
CassandraOperations.updateAsynchronously(List<T> entities,
WriteOptions options)
Deprecated.
This method does not allow for query cancellation or notification of completion. Favor
CassandraOperations.updateAsynchronously(List, WriteListener, WriteOptions) . |
<T> Cancellable |
CassandraTemplate.updateAsynchronously(T entity,
WriteListener<T> listener,
WriteOptions options) |
<T> Cancellable |
CassandraOperations.updateAsynchronously(T entity,
WriteListener<T> listener,
WriteOptions options)
Updates the given entity asynchronously.
|
<T> T |
CassandraTemplate.updateAsynchronously(T entity,
WriteOptions options) |
<T> T |
CassandraOperations.updateAsynchronously(T entity,
WriteOptions options)
Deprecated.
This method does not allow for query cancellation or notification of completion. Favor
CassandraOperations.updateAsynchronously(Object, WriteListener, WriteOptions) . |
Copyright © 2011-2015–2015 Pivotal Software, Inc.. All rights reserved.