public final class StorageOptionsFactory extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static org.rocksdb.ColumnFamilyOptions |
getDefaultRocksDBColumnFamilyOptions() |
static org.rocksdb.DBOptions |
getDefaultRocksDBOptions() |
static org.rocksdb.BlockBasedTableConfig |
getDefaultRocksDBTableConfig() |
static org.rocksdb.ColumnFamilyOptions |
getRocksDBColumnFamilyOptions(Class<?> cls)
Get a new default ColumnFamilyOptions or a copy of the exist
ColumnFamilyOptions.
|
static org.rocksdb.DBOptions |
getRocksDBOptions(Class<?> cls)
Get a new default DBOptions or a copy of the exist DBOptions.
|
static org.rocksdb.BlockBasedTableConfig |
getRocksDBTableFormatConfig(Class<?> cls)
Get a new default TableFormatConfig or a copy of the exist ableFormatConfig.
|
static void |
registerRocksDBColumnFamilyOptions(Class<?> cls,
org.rocksdb.ColumnFamilyOptions opts)
Users can register a custom rocksdb ColumnFamilyOptions, then the
related classes will get their options by the key of their own class
name.
|
static void |
registerRocksDBOptions(Class<?> cls,
org.rocksdb.DBOptions opts)
Users can register a custom rocksdb dboptions, then the related
classes will get their options by the key of their own class
name.
|
static void |
registerRocksDBTableFormatConfig(Class<?> cls,
org.rocksdb.BlockBasedTableConfig cfg)
Users can register a custom rocksdb BlockBasedTableConfig, then the related
classes will get their options by the key of their own class name.
|
static void |
releaseAllOptions()
Releases all storage options from the responsibility of freeing the
underlying native C++ object.
|
public static void releaseAllOptions()
public static void registerRocksDBOptions(Class<?> cls, org.rocksdb.DBOptions opts)
cls - the key of DBOptionsopts - the DBOptionspublic static org.rocksdb.DBOptions getRocksDBOptions(Class<?> cls)
cls - the key of DBOptionspublic static org.rocksdb.DBOptions getDefaultRocksDBOptions()
public static void registerRocksDBColumnFamilyOptions(Class<?> cls, org.rocksdb.ColumnFamilyOptions opts)
cls - the key of ColumnFamilyOptionsopts - the ColumnFamilyOptionspublic static org.rocksdb.ColumnFamilyOptions getRocksDBColumnFamilyOptions(Class<?> cls)
cls - the key of ColumnFamilyOptionspublic static org.rocksdb.ColumnFamilyOptions getDefaultRocksDBColumnFamilyOptions()
public static void registerRocksDBTableFormatConfig(Class<?> cls, org.rocksdb.BlockBasedTableConfig cfg)
cls - the key of BlockBasedTableConfigcfg - the BlockBasedTableConfigpublic static org.rocksdb.BlockBasedTableConfig getRocksDBTableFormatConfig(Class<?> cls)
cls - the key of TableFormatConfigpublic static org.rocksdb.BlockBasedTableConfig getDefaultRocksDBTableConfig()
Copyright © 2021. All rights reserved.