| 限定符和类型 | 类和说明 |
|---|---|
static interface |
DBAbs.FunctionCommit |
| 限定符和类型 | 字段和说明 |
|---|---|
protected List<org.rocksdb.ColumnFamilyOptions> |
cfOptionsList |
protected ReadWriteLock |
CLOSE_LOCK |
protected org.rocksdb.ColumnFamilyHandle |
defHandle |
DBAbs.FunctionCommit |
functionCommit |
ThreadLocal<Boolean> |
IS_STATR_TX |
protected KeySegmentLockManager |
keySegmentLockManager |
protected org.rocksdb.ColumnFamilyHandle |
metaHandle |
protected boolean |
open |
protected boolean |
openTransaction |
protected org.rocksdb.DBOptions |
options |
protected org.rocksdb.ReadOptions |
readOptions |
protected org.rocksdb.RocksDB |
rocksDB |
protected ThreadLocal<List<DBCommand>> |
threadLogs |
protected ThreadLocal<TransactionEntity> |
TRANSACTION_ENTITY |
protected org.rocksdb.WriteOptions |
writeOptions |
| 限定符 | 构造器和说明 |
|---|---|
protected |
DBAbs() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
addLockEntity(LockEntity lockEntity) |
void |
checkKey() |
protected CloseLock |
closeCheck() |
protected CloseLock |
closeDo() |
protected void |
commit() |
void |
commit(List<DBCommand> logs) |
void |
commit(List<DBCommand> logs,
TransactionEntity transactionEntity) |
protected void |
commitLocal() |
void |
commitTX() |
void |
commitTX(TransactionEntity entity) |
protected void |
deleteDB(byte[] key,
SstColumnFamily columnFamily) |
protected void |
deleteHead(byte[] head,
SstColumnFamily columnFamily) |
protected void |
deleteRangeDB(byte[] start,
byte[] end,
SstColumnFamily columnFamily) |
protected List<org.rocksdb.ColumnFamilyDescriptor> |
getColumnFamilyDescriptor() |
protected byte[] |
getDB(byte[] key,
SstColumnFamily columnFamily) |
protected Map<byte[],byte[]> |
multiGet(List<byte[]> keys,
SstColumnFamily columnFamily) |
protected org.rocksdb.RocksIterator |
newIterator(SstColumnFamily columnFamily) |
protected void |
putDB(byte[] key,
byte[] value,
SstColumnFamily columnFamily) |
protected void |
release() |
org.rocksdb.RocksDB |
rocksDB() |
void |
rollbackTX() |
void |
rollbackTX(TransactionEntity entity) |
void |
simpleCommit(List<DBCommand> logs) |
byte[] |
simpleGet(byte[] key,
SstColumnFamily columnFamily) |
void |
simplePut(byte[] key,
byte[] value,
SstColumnFamily columnFamily) |
void |
start() |
void |
startTran() |
protected org.rocksdb.WriteOptions |
writeOptions() |
protected org.rocksdb.RocksDB rocksDB
protected boolean openTransaction
protected volatile boolean open
protected KeySegmentLockManager keySegmentLockManager
protected org.rocksdb.WriteOptions writeOptions
protected org.rocksdb.DBOptions options
protected org.rocksdb.ReadOptions readOptions
protected org.rocksdb.ColumnFamilyHandle metaHandle
protected org.rocksdb.ColumnFamilyHandle defHandle
protected ThreadLocal<List<DBCommand>> threadLogs
protected ThreadLocal<TransactionEntity> TRANSACTION_ENTITY
public final ThreadLocal<Boolean> IS_STATR_TX
protected final ReadWriteLock CLOSE_LOCK
protected final List<org.rocksdb.ColumnFamilyOptions> cfOptionsList
public volatile DBAbs.FunctionCommit functionCommit
public org.rocksdb.RocksDB rocksDB()
protected CloseLock closeCheck() throws KitDBException
KitDBExceptionprotected CloseLock closeDo() throws KitDBException
KitDBExceptionpublic void commitTX()
throws KitDBException
KitDBExceptionpublic void commitTX(TransactionEntity entity) throws org.rocksdb.RocksDBException
org.rocksdb.RocksDBExceptionpublic void rollbackTX()
throws KitDBException
KitDBExceptionpublic void rollbackTX(TransactionEntity entity) throws org.rocksdb.RocksDBException
org.rocksdb.RocksDBExceptionpublic void start()
public void startTran()
throws KitDBException
KitDBExceptionprotected void addLockEntity(LockEntity lockEntity)
public void checkKey()
throws KitDBException
KitDBExceptionpublic void commit(List<DBCommand> logs) throws KitDBException
KitDBExceptionpublic void commit(List<DBCommand> logs, TransactionEntity transactionEntity) throws KitDBException
KitDBExceptionpublic void simpleCommit(List<DBCommand> logs) throws KitDBException, org.rocksdb.RocksDBException
KitDBExceptionorg.rocksdb.RocksDBExceptionprotected void commitLocal()
throws KitDBException
KitDBExceptionprotected void commit()
throws KitDBException
KitDBExceptionprotected org.rocksdb.WriteOptions writeOptions()
protected void release()
public void simplePut(byte[] key,
byte[] value,
SstColumnFamily columnFamily)
throws KitDBException
KitDBExceptionprotected void putDB(byte[] key,
byte[] value,
SstColumnFamily columnFamily)
protected void deleteDB(byte[] key,
SstColumnFamily columnFamily)
protected void deleteRangeDB(byte[] start,
byte[] end,
SstColumnFamily columnFamily)
protected List<org.rocksdb.ColumnFamilyDescriptor> getColumnFamilyDescriptor()
protected byte[] getDB(byte[] key,
SstColumnFamily columnFamily)
throws KitDBException
KitDBExceptionpublic byte[] simpleGet(byte[] key,
SstColumnFamily columnFamily)
throws KitDBException
KitDBExceptionprotected org.rocksdb.RocksIterator newIterator(SstColumnFamily columnFamily)
protected Map<byte[],byte[]> multiGet(List<byte[]> keys, SstColumnFamily columnFamily) throws KitDBException
KitDBExceptionprotected void deleteHead(byte[] head,
SstColumnFamily columnFamily)
Copyright © 2019. All rights reserved.