Exemplo n.º 1
0
    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();
    }
Exemplo n.º 2
0
 public Object getProperty(final String iName) {
   return underlying.getProperty(iName);
 }