java.lang.Object
org.lmdbjava.Library
JNR-FFI interface to LMDB.
For performance reasons pointers are used rather than structs.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceCustom comparator callback used bymdb_set_compare.static interfaceJNR API for MDB-defined C functions.static final classStructure to wrap a nativeMDB_envinfo.static final classStructure to wrap a nativeMDB_stat. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringJava system property name that can be set to disable automatic extraction of the LMDB system library from the LmdbJava JAR.static final StringJava system property name that can be set to the path of an existing directory into which the LMDB system library will be extracted from the LmdbJava JAR.static final StringJava system property name that can be set to provide a custom path to a external LMDB system library.static final jnr.ffi.Runtimestatic final booleanIndicates whether automatic extraction of the LMDB system library is permitted. -
Method Summary
-
Field Details
-
DISABLE_EXTRACT_PROP
Java system property name that can be set to disable automatic extraction of the LMDB system library from the LmdbJava JAR. This may be desirable if an operating system-provided LMDB system library is preferred (eg operating system package management, vendor support, special compiler flags, security auditing, profile guided optimization builds, faster startup time by avoiding the library copy etc).- See Also:
-
LMDB_EXTRACT_DIR_PROP
Java system property name that can be set to the path of an existing directory into which the LMDB system library will be extracted from the LmdbJava JAR. If unspecified the LMDB system library is extracted to thejava.io.tmpdir. Ignored if the LMDB system library is not being extracted from the LmdbJava JAR (as would be the case if other system properties defined inLibraryhave been set).- See Also:
-
LMDB_NATIVE_LIB_PROP
Java system property name that can be set to provide a custom path to a external LMDB system library. If set, the system property DISABLE_EXTRACT_PROP will be overridden.- See Also:
-
SHOULD_EXTRACT
public static final boolean SHOULD_EXTRACTIndicates whether automatic extraction of the LMDB system library is permitted. -
RUNTIME
public static final jnr.ffi.Runtime RUNTIME
-