MCPcopy Create free account
hub / github.com/bytedance/terarkdb / dropColumnFamily

Method dropColumnFamily

java/src/main/java/org/rocksdb/RocksDB.java:2364–2370  ·  view source on GitHub ↗

Drops the column family identified by columnFamilyName. Internal handles to this column family will be disposed. If the column family is not known removal will fail. @param columnFamilyHandle org.rocksdb.ColumnFamilyHandle instance @throws RocksDBException thrown if error happens in un

(final ColumnFamilyHandle columnFamilyHandle)

Source from the content-addressed store, hash-verified

2362 * native library.
2363 */
2364 public void dropColumnFamily(final ColumnFamilyHandle columnFamilyHandle)
2365 throws RocksDBException, IllegalArgumentException {
2366 // throws RocksDBException if something goes wrong
2367 dropColumnFamily(nativeHandle_, columnFamilyHandle.nativeHandle_);
2368 // After the drop the native handle is not valid anymore
2369 columnFamilyHandle.disOwnNativeHandle();
2370 }
2371
2372 /**
2373 * <p>Flush all memory table data.</p>

Callers 5

mainMethod · 0.80
failPutDisposedCFMethod · 0.80
failRemoveDisposedCFMethod · 0.80
failGetDisposedCFMethod · 0.80

Calls 1

disOwnNativeHandleMethod · 0.80

Tested by 4

failPutDisposedCFMethod · 0.64
failRemoveDisposedCFMethod · 0.64
failGetDisposedCFMethod · 0.64