columnFamilyMutations = new ArrayList<Mutation>();
keyMutations.put(columnFamily, columnFamilyMutations);
}
if (value == null) { // Delete
Deletion deletion = new Deletion();
deletion.setTimestamp(microTimestamp());
if (superColumn != null) {
deletion.setSuper_column(superColumn);
}
if (columnName != null) { // Single column delete
deletion.setPredicate(new SlicePredicate().setColumn_names(Collections
.singletonList(columnName)));
} // else Delete entire column family or supercolumn
columnFamilyMutations.add(new Mutation().setDeletion(deletion));
} else { // Insert/update
ColumnOrSuperColumn cosc = new ColumnOrSuperColumn();