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

Method apply

recipes/java-recipes/MicroGraph.java:56–60  ·  view source on GitHub ↗
(Transaction tr)

Source from the content-addressed store, hash-verified

54 public static void setEdge(TransactionContext tcx, final String node, final String neighbor){
55 tcx.run(new Function<Transaction,Void>() {
56 public Void apply(Transaction tr){
57 tr.set(edge.pack(Tuple.from(node,neighbor)), Tuple.from().pack());
58 tr.set(inverse.pack(Tuple.from(neighbor,node)), Tuple.from().pack());
59 return null;
60 }
61 });
62 }
63

Callers

nothing calls this directly

Calls 15

fromMethod · 0.95
putMethod · 0.80
setMethod · 0.65
clearMethod · 0.65
getRangeMethod · 0.65
getKeyMethod · 0.65
mutateMethod · 0.65
getMethod · 0.65
packMethod · 0.45
rangeMethod · 0.45
subspaceMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected