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

Method setCell

recipes/java-recipes/MicroTable.java:60–72  ·  view source on GitHub ↗
(TransactionContext tcx, final String row,
								final String column, final Object value)

Source from the content-addressed store, hash-verified

58 }
59
60 public static void setCell(TransactionContext tcx, final String row,
61 final String column, final Object value){
62 tcx.run(new Function<Transaction, Void>() {
63 public Void apply(Transaction tr){
64 tr.set(rowIndex.subspace(Tuple.from(row, column)).getKey(),
65 pack(value));
66 tr.set(colIndex.subspace(Tuple.from(column,row)).getKey(),
67 pack(value));
68
69 return null;
70 }
71 });
72 }
73
74 public static Object getCell(TransactionContext tcx, final String row,
75 final String column){

Callers 2

applyMethod · 0.95
smokeTestMethod · 0.95

Calls 1

runMethod · 0.65

Tested by

no test coverage detected