public MutationBatch prepareMutationBatch() {
return new AbstractThriftMutationBatchImpl(config.getClock(), config.getDefaultWriteConsistencyLevel(), config.getRetryPolicy().duplicate()) {
@Override
public OperationResult<Void> execute() throws ConnectionException {
WriteAheadLog wal = getWriteAheadLog();
WriteAheadEntry walEntry = null;
if (wal != null) {
walEntry = wal.createEntry();
walEntry.writeMutation(this);
}
try {
OperationResult<Void> result = executeOperation(
new AbstractKeyspaceOperationImpl<Void>(
tracerFactory.newTracer(useAtomicBatch() ? CassandraOperationType.ATOMIC_BATCH_MUTATE : CassandraOperationType.BATCH_MUTATE),