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