@Test public void testSpaceReclamation() throws Exception { byte[] keyBytes = randomBytes(16); Btree btree = buildBtree(keyBytes); byte[] key = "A".getBytes(); byte[] bytes = TestUtils.buildBytes(30000); for (int i = 1; i <= 10000; i++) { put(btree, key, bytes); } System.out.println(btree.getDb().getPageStore().debugDump()); Assert.assertTrue(btree.getDb().getPageStore().debugIsIdle().or(true)); }
public Database getDb() { return db; }
Btree { public Database getDb() { return db; } }
Btree { public Database getDb() { return db; } Btree(Database db, boolean uniqueKeys); }
Btree { public Database getDb() { return db; } Btree(Database db, boolean uniqueKeys); WriteTransaction beginReadWrite(); ReadOnlyTransaction beginReadOnly(); boolean isUniqueKeys(); Database getDb(); String writeSnapshot(ReadOnlyTransaction txn, SnapshotStorage snapshotDest); }
Btree { public Database getDb() { return db; } Btree(Database db, boolean uniqueKeys); WriteTransaction beginReadWrite(); ReadOnlyTransaction beginReadOnly(); boolean isUniqueKeys(); Database getDb(); String writeSnapshot(ReadOnlyTransaction txn, SnapshotStorage snapshotDest);  }