(TransactionContext tcx, final String row, final Map<String,Object> cols)
| 82 | } |
| 83 | |
| 84 | public static void setRow(TransactionContext tcx, final String row, |
| 85 | final Map<String,Object> cols){ |
| 86 | tcx.run(new Function<Transaction, Void>() { |
| 87 | public Void apply(Transaction tr){ |
| 88 | tr.clear(rowIndex.subspace(Tuple.from(row)).range()); |
| 89 | |
| 90 | for(Map.Entry<String,Object> cv : cols.entrySet()){ |
| 91 | setCell(tr, row, cv.getKey(), cv.getValue()); |
| 92 | } |
| 93 | return null; |
| 94 | } |
| 95 | }); |
| 96 | } |
| 97 | |
| 98 | public static void setColumn(TransactionContext tcx, final String column, |
| 99 | final Map<String,Object> rows){ |