public final class RocksUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
generateDbPath(String baseDir,
String dbName)
Generates a path to use for a RocksDB database.
|
static long |
readLong(byte[] bytes,
int start) |
static byte[] |
toByteArray(long long1,
long long2) |
static byte[] |
toByteArray(long n,
String str) |
public static String generateDbPath(String baseDir, String dbName)
baseDir
- the base directory pathdbName
- a name for the databasepublic static byte[] toByteArray(long long1, long long2)
long1
- a long valuelong2
- a long valuepublic static byte[] toByteArray(long n, String str)
n
- a long valuestr
- a string valuepublic static long readLong(byte[] bytes, int start)
bytes
- an array of bytesstart
- the place in the array to read the long fromCopyright © 2023. All Rights Reserved.