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

Method clearSubspace

recipes/java-recipes/MicroQueue.java:103–110  ·  view source on GitHub ↗
(TransactionContext tcx, final Subspace s)

Source from the content-addressed store, hash-verified

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);

Callers 1

mainMethod · 0.95

Calls 1

runMethod · 0.65

Tested by

no test coverage detected