Search in sources :

Example 1 with IOUtils

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();
}
Also used : IOUtils(org.apache.flink.util.IOUtils) ColumnFamilyHandle(org.rocksdb.ColumnFamilyHandle)

Aggregations

IOUtils (org.apache.flink.util.IOUtils)1 ColumnFamilyHandle (org.rocksdb.ColumnFamilyHandle)1