Baloo::MTimeDB

Search for usage in LXR

#include <mtimedb.h>

Public Member Functions

 MTimeDB (MDB_dbi dbi, MDB_txn *txn)
 
void del (quint32 mtime, quint64 docId)
 
QVector< quint64 > get (quint32 mtime)
 
PostingIteratoriterRange (quint32 beginTime, quint32 endTime)
 
void put (quint32 mtime, quint64 docId)
 
QMap< quint32, quint64 > toTestMap () const
 

Static Public Member Functions

static MDB_dbi create (MDB_txn *txn)
 
static MDB_dbi open (MDB_txn *txn)
 

Detailed Description

The MTime DB maps the file mtime to its id.

This allows us to do fast searches of files between a certain time range.

Definition at line 24 of file mtimedb.h.

Member Function Documentation

◆ iterRange()

PostingIterator * MTimeDB::iterRange ( quint32  beginTime,
quint32  endTime 
)

Get documents with an mtime between beginTime and endTime (inclusive)

Definition at line 131 of file mtimedb.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 04:10:36 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.