| 96 | } |
| 97 | |
| 98 | public static void setColumn(TransactionContext tcx, final String column, |
| 99 | final Map<String,Object> rows){ |
| 100 | tcx.run(new Function<Transaction,Void>() { |
| 101 | public Void apply(Transaction tr){ |
| 102 | tr.clear(colIndex.subspace(Tuple.from(column)).range()); |
| 103 | for(Map.Entry<String,Object> rv : rows.entrySet()){ |
| 104 | setCell(tr, rv.getKey(), column, rv.getValue()); |
| 105 | } |
| 106 | return null; |
| 107 | } |
| 108 | }); |
| 109 | } |
| 110 | |
| 111 | public static TreeMap<String,Object> getRow(TransactionContext tcx, |
| 112 | final String row){ |