Registry / database / rocksdbjni

rocksdbjni

JSON →
library10.10.1javamavenunverified

Java API and native libraries for RocksDB, a high-performance embedded key-value store from Facebook.

<dependency> <groupId>org.rocksdb</groupId> <artifactId>rocksdbjni</artifactId> <version>10.10.1</version> </dependency>
INSTALL
IMPORT
SIG · ROCKSDBJNI
R
rocksdbjni
databasejavav10.10.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RocksDB
org.rocksdb.RocksDB

Opens a RocksDB database, writes and reads a key-value pair.

import org.rocksdb.RocksDB; import org.rocksdb.Options; import org.rocksdb.RocksDBException; public class Quickstart { static { RocksDB.loadLibrary(); } public static void main(String[] args) throws RocksDBException { Options options = new Options().setCreateIfMissing(true); RocksDB db = RocksDB.open(options, "/tmp/testdb"); byte[] key = "hello".getBytes(); byte[] value = "world".getBytes(); db.put(key, value); byte[] result = db.get(key); System.out.println("Got: " + new String(result)); db.close(); } }
Debug
Known issues
gotchaRocksDB JNI requires native libraries for the platform; ensure they are included in the classpath.
fix
Add the appropriate native library dependency or use a fat JAR that bundles them.
affects: *
Upgrade
Version history
10.10.1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
rocksdbjni — mvn dependency:get rocksdbjni · libregistry