@Test public void testHugeValues() throws Exception { byte[] keyBytes = randomBytes(16); Btree btree = buildBtree(keyBytes); int n = 30; for (int i = 1; i <= n; i++) { byte[] key = Integer.toString(i).getBytes(); byte[] value = buildBytes(i * 10000); put(btree, key, value); } for (int i = 1; i <= n; i++) { byte[] key = Integer.toString(i).getBytes(); byte[] actual = get(btree, key); byte[] expected = buildBytes(i * 10000); Assert.assertArrayEquals(expected, actual); } 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);  }