Lmdb Connector provide interface to interact with LMDB databases.
Connector has one implementation that uses JNI Library and contains precompiled versions for Linux (64-bit) and Mac OS X (64 bit).
LMDB connector provides separate API module. To add its to project include next dependency to gradle script:
dependencies {
compile("org.ametiste.lib:lmdb-connector-api:${connectorVersion}")
}
Concrete connector implementation adds as following:
dependencies {
compile("org.ametiste.lib:lmdb-connector-deephacks:${connectorVersion}")
}
public void printData(String path) {
LmdbConnector connector = mew JniLmdbConnector();
try (LmdbIterator iter = connector.iterate(path)) {
iter.forEachRemaining(System.out::println);
}
}