(Transaction tr)
| 45 | public static void stopRangeSoon(TransactionContext tcx, final Range r){ |
| 46 | tcx.run(new Function<Transaction,Void>() { |
| 47 | public Void apply(Transaction tr){ |
| 48 | // TODO This loop in recipe book. |
| 49 | for(KeyValue kv : tr.getRange(r, ReadTransaction.ROW_LIMIT_UNLIMITED, |
| 50 | false, StreamingMode.SMALL)){ |
| 51 | if(haltingCondition(kv.getKey(), kv.getValue())){ |
| 52 | break; |
| 53 | } |
| 54 | System.out.println(Tuple.fromBytes(kv.getKey()).toString() |
| 55 | + " " + Tuple.fromBytes(kv.getValue()).toString()); |
| 56 | } |
| 57 | |
| 58 | return null; |
| 59 | } |
| 60 | }); |
| 61 | } |
| 62 |
nothing calls this directly
no test coverage detected