public class RocksDBStdSessions extends RocksDBSessions
RocksDBSessions.Countable, RocksDBSessions.Session| 构造器和说明 |
|---|
RocksDBStdSessions(HugeConfig config,
String database,
String store,
String dataPath,
String walPath) |
RocksDBStdSessions(HugeConfig config,
String database,
String store,
String dataPath,
String walPath,
List<String> cfNames) |
| 限定符和类型 | 方法和说明 |
|---|---|
RocksDBSessions |
copy(HugeConfig config,
String database,
String store) |
void |
createSnapshot(String parentPath) |
void |
createTable(String... tables) |
static String |
decode(byte[] bytes) |
protected void |
doClose() |
void |
dropTable(String... tables) |
static byte[] |
encode(String string) |
boolean |
existsTable(String table) |
void |
forceCloseRocksDB() |
static void |
initOptions(HugeConfig conf,
org.rocksdb.DBOptionsInterface<?> db,
org.rocksdb.MutableDBOptionsInterface<?> mdb,
org.rocksdb.ColumnFamilyOptionsInterface<?> cf,
org.rocksdb.MutableColumnFamilyOptionsInterface<?> mcf) |
static Set<String> |
listCFs(String path) |
protected RocksDBSessions.Session |
newSession() |
void |
open() |
protected boolean |
opened() |
Set<String> |
openedTables() |
List<String> |
property(String property) |
void |
reload() |
RocksDBSessions.Session |
session() |
close, closed, config, forceResetSessions, getOrNewSession, toString, useSessionpublic RocksDBStdSessions(HugeConfig config, String database, String store, String dataPath, String walPath) throws org.rocksdb.RocksDBException
org.rocksdb.RocksDBExceptionpublic void open()
throws Exception
open 在类中 BackendSessionPoolExceptionprotected boolean opened()
opened 在类中 BackendSessionPoolpublic Set<String> openedTables()
openedTables 在类中 RocksDBSessionspublic void createTable(String... tables) throws org.rocksdb.RocksDBException
createTable 在类中 RocksDBSessionsorg.rocksdb.RocksDBExceptionpublic void dropTable(String... tables) throws org.rocksdb.RocksDBException
dropTable 在类中 RocksDBSessionsorg.rocksdb.RocksDBExceptionpublic void reload()
throws org.rocksdb.RocksDBException
reload 在类中 RocksDBSessionsorg.rocksdb.RocksDBExceptionpublic void forceCloseRocksDB()
forceCloseRocksDB 在类中 RocksDBSessionspublic boolean existsTable(String table)
existsTable 在类中 RocksDBSessionspublic List<String> property(String property)
property 在类中 RocksDBSessionspublic RocksDBSessions copy(HugeConfig config, String database, String store)
copy 在类中 RocksDBSessionspublic void createSnapshot(String parentPath)
createSnapshot 在类中 RocksDBSessionspublic final RocksDBSessions.Session session()
session 在类中 RocksDBSessionsprotected final RocksDBSessions.Session newSession()
newSession 在类中 BackendSessionPoolprotected void doClose()
doClose 在类中 BackendSessionPoolpublic static Set<String> listCFs(String path) throws org.rocksdb.RocksDBException
org.rocksdb.RocksDBExceptionpublic static void initOptions(HugeConfig conf, org.rocksdb.DBOptionsInterface<?> db, org.rocksdb.MutableDBOptionsInterface<?> mdb, org.rocksdb.ColumnFamilyOptionsInterface<?> cf, org.rocksdb.MutableColumnFamilyOptionsInterface<?> mcf)
public static final byte[] encode(String string)
public static final String decode(byte[] bytes)
Copyright © 2017–2021. All rights reserved.