public void insert(byte[] keyarray, String columnFamily, Column[] columns, ConsistencyLevel consistencyLevel) throws IOException
{
ByteBuffer key = ByteBuffer.wrap(keyarray);
List<Mutation> mutationList = new ArrayList<Mutation>();
for(int i = 0; i < columns.length; i++) {
Mutation mutation = new Mutation();
ColumnOrSuperColumn cosc = new ColumnOrSuperColumn();
cosc.column = columns[i];
mutation.setColumn_or_supercolumn(cosc);
mutationList.add(mutation);
}
Map<String, List<Mutation>> innerMutationMap = new HashMap<String, List<Mutation>>();
innerMutationMap.put(columnFamily, mutationList);
Map<ByteBuffer, Map<String, List<Mutation>>> mutationMap = new HashMap<ByteBuffer, Map<String, List<Mutation>>>();