Package org.lwjgl.util.lmdb
@NullMarked
package org.lwjgl.util.lmdb
Bindings to LMDB, the Symas Lightning Memory-Mapped Database.
LMDB is a Btree-based database management library modeled loosely on the BerkeleyDB API, but much simplified. The entire database is exposed in a memory map, and all data fetches return data directly from the mapped memory, so no malloc's or memcpy's occur during data fetches. As such, the library is extremely simple because it requires no page caching layer of its own, and it is extremely high performance and memory-efficient. It is also fully transactional with full ACID semantics, and when the memory map is read-only, the database integrity cannot be corrupted by stray pointer writes from application code.
Resources
-
ClassDescriptionCallback function:
MDB_cmp_func *
Callback function:MDB_cmp_func *
struct MDB_envinfo { void * me_mapaddr; size_t me_mapsize; size_t me_last_pgno; size_t me_last_txnid; unsigned int me_maxreaders; unsigned int me_numreaders; }
An array ofMDBEnvInfo
structs.Callback function:MDB_msg_func *
Callback function:MDB_msg_func *
Callback function:MDB_rel_func *
Callback function:MDB_rel_func *
struct MDB_stat { unsigned int ms_psize; unsigned int ms_depth; size_t ms_branch_pages; size_t ms_leaf_pages; size_t ms_overflow_pages; size_t ms_entries; }
An array ofMDBStat
structs.struct MDB_val { size_t mv_size; void * mv_data; }
An array ofMDBVal
structs.