@Override public void cleanup() throws DBException { super.cleanup(); synchronized (RocksDBClient.class) { try { if (references == 1) { for (final ColumnFamily cf : COLUMN_FAMILIES.values()) { cf.getHandle().close(); } rocksDb.close(); rocksDb = null; dbOptions.close(); dbOptions = null; for (final ColumnFamily cf : COLUMN_FAMILIES.values()) { cf.getOptions().close(); } saveColumnFamilyNames(); COLUMN_FAMILIES.clear(); rocksDbDir = null; } } catch (final IOException e) { throw new DBException(e); } finally { references--; } } }
@Override protected synchronized void doClose() { this.checkValid(); for (ColumnFamilyHandle cf : this.cfs.values()) { cf.close(); } this.cfs.clear(); this.rocksdb.close(); }
@Override public void dropTable(String table) throws RocksDBException { this.checkValid(); ColumnFamilyHandle cfh = cf(table); this.rocksdb.dropColumnFamily(cfh); cfh.close(); this.cfs.remove(table); }
@Override public void close() { for(Map.Entry<ByteArray, ColumnFamilyHandle> entry: cfHandles.entrySet()) { entry.getValue().close(); } cfHandles.clear(); dataBatches.clear(); rocksDBOptions.close(); rocksDB.close(); }
@Override protected synchronized void doClose() { this.checkValid(); for (ColumnFamilyHandle cf : this.cfs.values()) { cf.close(); } this.cfs.clear(); this.rocksdb.close(); }
@Override public void dropTable(String table) throws RocksDBException { this.checkValid(); ColumnFamilyHandle cfh = cf(table); this.rocksdb.dropColumnFamily(cfh); cfh.close(); this.cfs.remove(table); }
kvStateInformation.values()) { try { column.f0.close(); } catch (Exception ex) { LOG.info("Exception while closing ColumnFamilyHandle object.", ex);
public void close() { readOptions.close(); writeOptions.close(); column.close(); bloomFilter.close(); colFamilyOptions.close(); db = null; }
public void close() { readOptions.close(); writeOptions.close(); column.close(); colFamilyOptions.close(); bloomFilter.close(); db = null; }