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

Method apply

recipes/java-recipes/MicroVector.java:41–44  ·  view source on GitHub ↗
(Transaction tr)

Source from the content-addressed store, hash-verified

39 public static Object get(TransactionContext tcx, final long index){
40 return tcx.run(new Function<Transaction,Object>() {
41 public Object apply(Transaction tr){
42 return Tuple.fromBytes(tr.get(vector.pack(
43 Tuple.from(index))).get()).get(0);
44 }
45 });
46 }
47

Callers

nothing calls this directly

Calls 7

fromBytesMethod · 0.95
fromMethod · 0.95
getMethod · 0.65
setMethod · 0.65
clearMethod · 0.65
packMethod · 0.45
rangeMethod · 0.45

Tested by

no test coverage detected