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

Method tupleRep

recipes/java-recipes/MicroDoc.java:215–230  ·  view source on GitHub ↗
(Tuple t)

Source from the content-addressed store, hash-verified

213 //TODO Everything in this class before here is in the doc.
214
215 private static String tupleRep(Tuple t){
216 StringBuilder sb = new StringBuilder();
217 sb.append('(');
218 for(Object o : t){
219 if(o instanceof Tuple){
220 sb.append(tupleRep((Tuple)o));
221 } else if(o == null){
222 sb.append("null");
223 } else {
224 sb.append(o.toString());
225 }
226 sb.append(',');
227 }
228 sb.append(')');
229 return sb.toString();
230 }
231
232 public static void printSubspace(TransactionContext tcx, final Subspace s){
233 tcx.run(new Function<Transaction,Void>() {

Callers 1

applyMethod · 0.95

Calls 2

appendMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected