@Override
public ColumnListMutation<C> incrementCounterColumn(C columnName, long amount) {
Preconditions.checkNotNull(columnName, "Column name cannot be null");
// 1. Set up the column with all the data
CounterColumn column = new CounterColumn();
column.setName(columnSerializer.toByteBuffer(columnName));
if (column.getName().length == 0) {
throw new RuntimeException("Column name cannot be empty");
}
column.setValue(amount);
// 2. Create a mutation and append to the mutation list.
Mutation mutation = new Mutation();
mutation.setColumn_or_supercolumn(new ColumnOrSuperColumn().setCounter_column(column));
mutationList.add(mutation);