public class BaseRocksDBUnitTest extends BaseUnitTest
| Modifier and Type | Field and Description |
|---|---|
protected com.baidu.hugegraph.backend.store.rocksdb.RocksDBSessions |
rocks |
protected static String |
TABLE |
| Constructor and Description |
|---|
BaseRocksDBUnitTest() |
| Modifier and Type | Method and Description |
|---|---|
protected static byte[] |
b(long val) |
protected static byte[] |
b(String str) |
static void |
clear() |
protected void |
clearData() |
protected void |
commit() |
protected String |
get(String key) |
protected static long |
l(byte[] bytes) |
protected void |
put(String key,
String value) |
protected static String |
s(byte[] bytes) |
void |
setup() |
void |
teardown() |
init, runWithThreads, waitTillNextprotected static final String TABLE
protected com.baidu.hugegraph.backend.store.rocksdb.RocksDBSessions rocks
public static void clear()
throws IOException
IOExceptionpublic void setup()
throws org.rocksdb.RocksDBException
org.rocksdb.RocksDBExceptionpublic void teardown()
throws org.rocksdb.RocksDBException
org.rocksdb.RocksDBExceptionprotected String get(String key) throws org.rocksdb.RocksDBException
org.rocksdb.RocksDBExceptionprotected void clearData()
throws org.rocksdb.RocksDBException
org.rocksdb.RocksDBExceptionprotected void commit()
protected static byte[] b(String str)
protected static String s(byte[] bytes)
protected static byte[] b(long val)
protected static long l(byte[] bytes)
Copyright © 2017–2018. All rights reserved.