use of org.apache.flink.util.IOUtils in project flink by apache.
the class RocksDBResource method after.
@Override
protected void after() {
// destruct in reversed order of creation.
IOUtils.closeQuietly(this.batchWrapper);
for (ColumnFamilyHandle columnFamilyHandle : columnFamilyHandles) {
IOUtils.closeQuietly(columnFamilyHandle);
}
IOUtils.closeQuietly(this.rocksDB);
IOUtils.closeQuietly(this.readOptions);
IOUtils.closeQuietly(this.writeOptions);
IOUtils.closeQuietly(this.columnFamilyOptions);
IOUtils.closeQuietly(this.dbOptions);
handlesToClose.forEach(IOUtils::closeQuietly);
temporaryFolder.delete();
}
Aggregations