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

Method add

recipes/java-recipes/MicroMulti.java:71–79  ·  view source on GitHub ↗
(TransactionContext tcx, final String index,
							final Object value)

Source from the content-addressed store, hash-verified

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){

Callers 14

mainMethod · 0.95
multi_addFunction · 0.45
multi_subFunction · 0.45
multi_addFunction · 0.45
multi_subtractFunction · 0.45
applyMethod · 0.45
applyMethod · 0.45
applyMethod · 0.45
applyMethod · 0.45
toTuplesMethod · 0.45
getTruncatedMethod · 0.45
fromTuplesMethod · 0.45

Calls 1

runMethod · 0.65

Tested by

no test coverage detected