|
|
|
@ -369,13 +369,14 @@ class TableFactory { |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
#ifndef ROCKSDB_LITE |
|
|
|
|
// Create a special table factory that can open both of block based table format
|
|
|
|
|
// and plain table, based on setting inside the SST files. It should be used to
|
|
|
|
|
// Create a special table factory that can open either of the supported
|
|
|
|
|
// table formats, based on setting inside the SST files. It should be used to
|
|
|
|
|
// convert a DB from one table format to another.
|
|
|
|
|
// @table_factory_to_write: the table factory used when writing to new files.
|
|
|
|
|
// @block_based_table_factory: block based table factory to use. If NULL, use
|
|
|
|
|
// a default one.
|
|
|
|
|
// @plain_table_factory: plain table factory to use. If NULL, use a default one.
|
|
|
|
|
// @cuckoo_table_factory: cuckoo table factory to use. If NULL, use a default one.
|
|
|
|
|
extern TableFactory* NewAdaptiveTableFactory( |
|
|
|
|
std::shared_ptr<TableFactory> table_factory_to_write = nullptr, |
|
|
|
|
std::shared_ptr<TableFactory> block_based_table_factory = nullptr, |
|
|
|
|