(TransactionContext tcx, final String row, final String column, final Object value)
| 58 | } |
| 59 | |
| 60 | public static void setCell(TransactionContext tcx, final String row, |
| 61 | final String column, final Object value){ |
| 62 | tcx.run(new Function<Transaction, Void>() { |
| 63 | public Void apply(Transaction tr){ |
| 64 | tr.set(rowIndex.subspace(Tuple.from(row, column)).getKey(), |
| 65 | pack(value)); |
| 66 | tr.set(colIndex.subspace(Tuple.from(column,row)).getKey(), |
| 67 | pack(value)); |
| 68 | |
| 69 | return null; |
| 70 | } |
| 71 | }); |
| 72 | } |
| 73 | |
| 74 | public static Object getCell(TransactionContext tcx, final String row, |
| 75 | final String column){ |