Baloo::MTimeDB
Baloo::MTimeDB Class Reference
#include <mtimedb.h>
Public Member Functions | |
MTimeDB (MDB_dbi dbi, MDB_txn *txn) | |
void | del (quint32 mtime, quint64 docId) |
QVector< quint64 > | get (quint32 mtime) |
PostingIterator * | iterRange (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.
Constructor & Destructor Documentation
◆ MTimeDB()
|
explicit |
Definition at line 15 of file mtimedb.cpp.
◆ ~MTimeDB()
MTimeDB::~MTimeDB | ( | ) |
Definition at line 23 of file mtimedb.cpp.
Member Function Documentation
◆ create()
|
static |
Definition at line 27 of file mtimedb.cpp.
◆ del()
void MTimeDB::del | ( | quint32 | mtime, |
quint64 | docId ) |
Definition at line 112 of file mtimedb.cpp.
◆ get()
QVector< quint64 > MTimeDB::get | ( | quint32 | mtime | ) |
Definition at line 72 of file mtimedb.cpp.
◆ 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.
◆ open()
|
static |
Definition at line 39 of file mtimedb.cpp.
◆ put()
void MTimeDB::put | ( | quint32 | mtime, |
quint64 | docId ) |
Definition at line 51 of file mtimedb.cpp.
◆ toTestMap()
QMap< quint32, quint64 > MTimeDB::toTestMap | ( | ) | const |
Definition at line 182 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-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:03:07 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:03:07 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.