Is there a way to retrieve `ColumnFamilyHandle` from `ColumnFamilyName` in RocksDb?

350 Views Asked by At

Alternatively, is there a way to get all the currently open ColumnFamilyHandles from a db?

I am aware of the static function RocksDB.listColumnFamilies. But this returns a List<byte[]> List containing the column family names. Not sure if there is a way to get ColumnFamilyHandle from here.

1

There are 1 best solutions below

0
On

Currently there's no API to retrieve the ColumnFamilyHandle after opening. You can only get the column_family_handle in Open(), or when creating new column_family.