(TransactionContext tcx, final Subspace s)
| 101 | |
| 102 | // Clears subspaces of a database. |
| 103 | public static void clearSubspace(TransactionContext tcx, final Subspace s){ |
| 104 | tcx.run(new Function<Transaction,Void>() { |
| 105 | public Void apply(Transaction tr){ |
| 106 | tr.clear(Range.startsWith(s.getKey())); |
| 107 | return null; |
| 108 | } |
| 109 | }); |
| 110 | } |
| 111 | |
| 112 | public static void main(String[] args){ |
| 113 | clearSubspace(db, queue); |