(TransactionContext tcx, final String index, final Object value)
| 69 | // TODO These five methods are definitely in the recipe book |
| 70 | // (add, subtract, get, getCounts, and isElement). |
| 71 | public static void add(TransactionContext tcx, final String index, |
| 72 | final Object value){ |
| 73 | tcx.run(new Function<Transaction,Void>() { |
| 74 | public Void apply(Transaction tr){ |
| 75 | addHelp(tr, multi.subspace(Tuple.from(index,value)).getKey(),1l); |
| 76 | return null; |
| 77 | } |
| 78 | }); |
| 79 | } |
| 80 | |
| 81 | public static void subtract(TransactionContext tcx, final String index, |
| 82 | final Object value){ |
no test coverage detected