public abstract class RBase extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
RBase.TimerCollection |
| 限定符和类型 | 字段和说明 |
|---|---|
protected static Charset |
charset |
protected DB |
db |
protected int |
DEF_TX_TIME_OUT |
protected boolean |
isLog |
protected KeyLock |
lock |
| 限定符和类型 | 方法和说明 |
|---|---|
CloseLock |
checkClose() |
protected void |
checkTxCommit() |
protected void |
checkTxRange() |
protected void |
checkTxRollBack() |
protected void |
checkTxStart() |
protected void |
commit() |
protected void |
commitLocal() |
void |
deleteDB(byte[] key,
SstColumnFamily columnFamily) |
protected void |
deleteHead(byte[] head,
SstColumnFamily columnFamily) |
protected void |
deleteRangeDB(byte[] start,
byte[] end,
SstColumnFamily columnFamily) |
protected void |
delTimer(KeyEnum keyEnum,
int time,
byte[] value) |
protected void |
delTimerCollection(KeyEnum keyEnum,
int time,
byte[] key_b,
byte[] meta_b) |
protected byte[] |
getDB(byte[] key,
SstColumnFamily columnFamily) |
protected static RBase.TimerCollection |
getTimerCollection(byte[] value) |
protected abstract TxLock |
getTxLock(String key) |
protected LockEntity |
lock(String key) |
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() |
protected void |
setTimer(KeyEnum keyEnum,
int time,
byte[] value) |
protected void |
setTimerCollection(KeyEnum keyEnum,
int time,
byte[] key_b,
byte[] meta_b) |
void |
start() |
protected void |
unlock(LockEntity lockEntity) |
protected DB db
protected final boolean isLog
protected static Charset charset
protected int DEF_TX_TIME_OUT
protected KeyLock lock
public void start()
public CloseLock checkClose() throws KitDBException
KitDBExceptionprotected void setTimer(KeyEnum keyEnum, int time, byte[] value)
protected void setTimerCollection(KeyEnum keyEnum, int time, byte[] key_b, byte[] meta_b)
protected void delTimerCollection(KeyEnum keyEnum, int time, byte[] key_b, byte[] meta_b)
protected void checkTxRange()
throws KitDBException
KitDBExceptionprotected LockEntity lock(String key)
protected void unlock(LockEntity lockEntity)
protected void checkTxStart()
throws KitDBException
KitDBExceptionprotected void checkTxCommit()
throws KitDBException
KitDBExceptionprotected void checkTxRollBack()
throws KitDBException
KitDBExceptionprotected static RBase.TimerCollection getTimerCollection(byte[] value)
protected void delTimer(KeyEnum keyEnum, int time, byte[] value)
protected void commit()
throws KitDBException
KitDBExceptionprotected void commitLocal()
throws KitDBException
KitDBExceptionprotected void release()
protected void putDB(byte[] key,
byte[] value,
SstColumnFamily columnFamily)
public void deleteDB(byte[] key,
SstColumnFamily columnFamily)
protected void deleteRangeDB(byte[] start,
byte[] end,
SstColumnFamily columnFamily)
protected byte[] getDB(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.