MCPcopy Create free account
hub / github.com/apple/foundationdb / apply

Method apply

recipes/java-recipes/MicroRange.java:47–59  ·  view source on GitHub ↗
(Transaction tr)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 15

haltingConditionMethod · 0.95
fromBytesMethod · 0.95
equalsMethod · 0.95
firstGreaterThanMethod · 0.95
getMethod · 0.95
fromMethod · 0.95
getRangeMethod · 0.65
getKeyMethod · 0.65
getMethod · 0.65
clearMethod · 0.65
setMethod · 0.65
getValueMethod · 0.45

Tested by

no test coverage detected