Package | Description |
---|---|
com.datastax.oss.driver.api.core.cql |
Modifier and Type | Method and Description |
---|---|
BatchStatement |
BatchStatement.add(BatchableStatement<?> statement)
Adds a new statement to the batch.
|
default BatchStatement |
BatchStatement.addAll(BatchableStatement<?>... statements) |
BatchStatement |
BatchStatement.addAll(Iterable<? extends BatchableStatement<?>> statements)
Adds new statements to the batch.
|
BatchStatement |
BatchStatementBuilder.build() |
BatchStatement |
BatchStatement.clear()
Clears the batch, removing all the statements added so far.
|
static BatchStatement |
BatchStatement.newInstance(BatchType batchType)
Creates an instance of the default implementation for the given batch type.
|
static BatchStatement |
BatchStatement.newInstance(BatchType batchType,
BatchableStatement<?>... statements)
Creates an instance of the default implementation for the given batch type, containing the
given statements.
|
static BatchStatement |
BatchStatement.newInstance(BatchType batchType,
Iterable<BatchableStatement<?>> statements)
Creates an instance of the default implementation for the given batch type, containing the
given statements.
|
BatchStatement |
BatchStatement.setBatchType(BatchType newBatchType)
Sets the batch type.
|
BatchStatement |
BatchStatement.setKeyspace(CqlIdentifier newKeyspace)
Sets the CQL keyspace to associate with this batch.
|
default BatchStatement |
BatchStatement.setKeyspace(String newKeyspaceName)
Shortcut for
setKeyspace(CqlIdentifier.fromCql(newKeyspaceName)) . |
Modifier and Type | Method and Description |
---|---|
static BatchStatementBuilder |
BatchStatement.builder(BatchStatement template)
Returns a builder to create an instance of the default implementation, copying the fields of
the given statement.
|
Constructor and Description |
---|
BatchStatementBuilder(BatchStatement template) |
Copyright © 2017–2020. All rights reserved.