Olaf
Overly Lightweight Acoustic Fingerprinting
Loading...
Searching...
No Matches
Olaf_DB Struct Reference

A struct with state information on the data store. More...

#include <olaf_db.h>

Data Fields

MDB_env * env
MDB_txn * txn
MDB_dbi dbi_fps
MDB_dbi dbi_resource_map
bool warning_given
const char * mdb_folder
const uint64_t * ref_fp
size_t ref_fp_length

Detailed Description

A struct with state information on the data store.

The state information depends on the implementation. This state can contain open files if it is a Key-Value store or arrays in memory if it is memory backed.

Field Documentation

◆ dbi_fps

MDB_dbi Olaf_DB::dbi_fps

Database handle for fingerprint storage.

◆ dbi_resource_map

MDB_dbi Olaf_DB::dbi_resource_map

Database handle for resource metadata.

◆ env

MDB_env* Olaf_DB::env

The LMDB environment handle.

◆ mdb_folder

const char* Olaf_DB::mdb_folder

Path to the LMDB database folder.

◆ ref_fp

const uint64_t* Olaf_DB::ref_fp

Pointer to the reference fingerprint array.

◆ ref_fp_length

size_t Olaf_DB::ref_fp_length

Number of elements in the reference fingerprint array.

◆ txn

MDB_txn* Olaf_DB::txn

The current LMDB transaction.

◆ warning_given

bool Olaf_DB::warning_given

Whether a collision warning has been printed.


The documentation for this struct was generated from the following files: