public class DB extends DBAbs
DBAbs.FunctionCommit| 限定符和类型 | 字段和说明 |
|---|---|
static String |
BACK_FILE_SUFFIX |
protected static Charset |
charset |
cfOptionsList, CLOSE_LOCK, defHandle, functionCommit, IS_STATR_TX, keySegmentLockManager, metaHandle, open, openTransaction, options, readOptions, rocksDB, threadLogs, TRANSACTION_ENTITY, writeOptions| 限定符和类型 | 方法和说明 |
|---|---|
String |
backupDB(String path,
String backName) |
static DB |
build(String dir) |
static DB |
build(String dir,
boolean autoclear) |
static DB |
buildTransactionDB(String dir,
boolean autoclear) |
void |
checkKVTTL()
检测泄露的KV——TTL
TODO
|
void |
checkTTL() |
void |
clear() |
void |
clearKV() |
void |
close() |
void |
compaction() |
RSnapshot |
createSnapshot() |
BinLog |
getBinLog() |
String |
getDir() |
RList |
getList() |
RMap |
getMap() |
RKv |
getrKv() |
RSet |
getSet() |
ZSet |
getzSet() |
void |
open(boolean autoclear,
boolean readOnly) |
void |
open(String dir,
boolean autoclear,
boolean readOnly) |
static DB |
readOnly(String dir) |
static void |
releaseBackup(String path,
String targetpath) |
void |
stop() |
VersionSequence |
versionSequence() |
addLockEntity, checkKey, closeCheck, closeDo, commit, commit, commit, commitLocal, commitTX, commitTX, deleteDB, deleteHead, deleteRangeDB, getColumnFamilyDescriptor, getDB, multiGet, newIterator, putDB, release, rocksDB, rollbackTX, rollbackTX, simpleCommit, simpleGet, simplePut, start, startTran, writeOptionspublic static String BACK_FILE_SUFFIX
protected static Charset charset
public void close()
throws InterruptedException,
KitDBException
public void stop()
throws InterruptedException,
KitDBException
public RSnapshot createSnapshot()
public VersionSequence versionSequence()
public void clear()
public ZSet getzSet()
public RMap getMap()
public RSet getSet()
public RList getList()
public void checkTTL()
public void checkKVTTL()
public void clearKV()
public void compaction()
public String backupDB(String path, String backName) throws org.rocksdb.RocksDBException, IOException
org.rocksdb.RocksDBExceptionIOExceptionpublic static void releaseBackup(String path, String targetpath) throws IOException
IOExceptionpublic static DB build(String dir) throws KitDBException
KitDBExceptionpublic static DB build(String dir, boolean autoclear) throws KitDBException
KitDBExceptionpublic static DB readOnly(String dir) throws KitDBException
KitDBExceptionpublic static DB buildTransactionDB(String dir, boolean autoclear) throws KitDBException
KitDBExceptionpublic void open(String dir, boolean autoclear, boolean readOnly) throws KitDBException
KitDBExceptionpublic void open(boolean autoclear,
boolean readOnly)
throws KitDBException
KitDBExceptionpublic RKv getrKv()
public BinLog getBinLog()
public String getDir()
Copyright © 2019. All rights reserved.