}
});
} else {
// use a BatchMutation to do multiple column deletions in one go
BatchMutation<String> batchMutation = new BatchMutation<String>(StringSerializer.get());
Deletion deletion = new Deletion();
deletion.setTimestamp(template.createTimestamp());
if (superColumnName != null) {
deletion.setSuper_column(bytes(superColumnName));
}
SlicePredicate predicate = new SlicePredicate();
for (String columnName : columnNames) {
predicate.addToColumn_names(bytes(columnName));
}
deletion.setPredicate(predicate);
batchMutation.addDeletion(rowKey, Collections.singletonList(columnFamilyName), deletion);
mutate(batchMutation, keyspaceName, template);
}
}