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

Method apply

recipes/java-recipes/MicroMulti.java:50–58  ·  view source on GitHub ↗
(Transaction tr)

Source from the content-addressed store, hash-verified

48 private static void addHelp(TransactionContext tcx, final byte[] key, final long amount){
49 tcx.run(new Function<Transaction,Void>() {
50 public Void apply(Transaction tr){
51 ByteBuffer b = ByteBuffer.allocate(8);
52 b.order(ByteOrder.LITTLE_ENDIAN);
53 b.putLong(amount);
54
55 tr.mutate(MutationType.ADD, key, b.array());
56
57 return null;
58 }
59 });
60 }
61

Callers

nothing calls this directly

Calls 15

addHelpMethod · 0.95
fromMethod · 0.95
getLongMethod · 0.95
putMethod · 0.80
mutateMethod · 0.65
getKeyMethod · 0.65
getMethod · 0.65
clearMethod · 0.65
getRangeMethod · 0.65
allocateMethod · 0.45
subspaceMethod · 0.45
rangeMethod · 0.45

Tested by

no test coverage detected