public void close() throws IOException { if (!readOnly) { LOG.info("Compacting leveldb"); String stats = db.getProperty("leveldb.stats"); LOG.info(stats); ((JniDB) db).compactRange(null, null); LOG.info("Done compacting leveldb"); stats = db.getProperty("leveldb.stats"); LOG.info(stats); } db.close(); }
public Object getProperty(final String iName) { return underlying.getProperty(iName); }