Baloo::PostingDB
#include <postingdb.h>
Public Types | |
enum | Comparator { LessEqual , GreaterEqual } |
Public Member Functions | |
PostingDB (MDB_dbi, MDB_txn *txn) | |
PostingIterator * | compIter (const QByteArray &prefix, const QByteArray &val, Comparator com) |
PostingIterator * | compIter (const QByteArray &prefix, double val, Comparator com) |
PostingIterator * | compIter (const QByteArray &prefix, qlonglong val, Comparator com) |
template<typename T > | |
std::enable_if< std::is_integral< T >::value, PostingIterator * >::type | compIter (const QByteArray &prefix, T val, Comparator com) |
void | del (const QByteArray &term) |
QVector< QByteArray > | fetchTermsStartingWith (const QByteArray &term) |
PostingList | get (const QByteArray &term) |
PostingIterator * | iter (const QByteArray &term) |
PostingIterator * | prefixIter (const QByteArray &term) |
void | put (const QByteArray &term, const PostingList &list) |
PostingIterator * | regexpIter (const QRegularExpression ®exp, const QByteArray &prefix) |
QMap< QByteArray, PostingList > | toTestMap () const |
Static Public Member Functions | |
static MDB_dbi | create (MDB_txn *txn) |
static MDB_dbi | open (MDB_txn *txn) |
Detailed Description
The PostingDB is the main database that maps -> <id1> <id2> <id2> ... This is used to lookup ids when searching for a .
Definition at line 27 of file postingdb.h.
Member Enumeration Documentation
◆ Comparator
enum Baloo::PostingDB::Comparator |
Definition at line 44 of file postingdb.h.
Constructor & Destructor Documentation
◆ PostingDB()
PostingDB::PostingDB | ( | MDB_dbi | dbi, |
MDB_txn * | txn ) |
Definition at line 15 of file postingdb.cpp.
◆ ~PostingDB()
PostingDB::~PostingDB | ( | ) |
Definition at line 23 of file postingdb.cpp.
Member Function Documentation
◆ compIter() [1/4]
PostingIterator * PostingDB::compIter | ( | const QByteArray & | prefix, |
const QByteArray & | val, | ||
PostingDB::Comparator | com ) |
Definition at line 281 of file postingdb.cpp.
◆ compIter() [2/4]
PostingIterator * PostingDB::compIter | ( | const QByteArray & | prefix, |
double | val, | ||
PostingDB::Comparator | com ) |
Definition at line 269 of file postingdb.cpp.
◆ compIter() [3/4]
PostingIterator * PostingDB::compIter | ( | const QByteArray & | prefix, |
qlonglong | val, | ||
PostingDB::Comparator | com ) |
Definition at line 258 of file postingdb.cpp.
◆ compIter() [4/4]
|
inline |
Definition at line 51 of file postingdb.h.
◆ create()
|
static |
Definition at line 27 of file postingdb.cpp.
◆ del()
void PostingDB::del | ( | const QByteArray & | term | ) |
Definition at line 94 of file postingdb.cpp.
◆ fetchTermsStartingWith()
QVector< QByteArray > PostingDB::fetchTermsStartingWith | ( | const QByteArray & | term | ) |
Definition at line 108 of file postingdb.cpp.
◆ get()
PostingList PostingDB::get | ( | const QByteArray & | term | ) |
Definition at line 72 of file postingdb.cpp.
◆ iter()
PostingIterator * PostingDB::iter | ( | const QByteArray & | term | ) |
Definition at line 150 of file postingdb.cpp.
◆ open()
|
static |
Definition at line 39 of file postingdb.cpp.
◆ prefixIter()
PostingIterator * PostingDB::prefixIter | ( | const QByteArray & | term | ) |
Definition at line 238 of file postingdb.cpp.
◆ put()
void PostingDB::put | ( | const QByteArray & | term, |
const PostingList & | list ) |
Definition at line 51 of file postingdb.cpp.
◆ regexpIter()
PostingIterator * PostingDB::regexpIter | ( | const QRegularExpression & | regexp, |
const QByteArray & | prefix ) |
Definition at line 247 of file postingdb.cpp.
◆ toTestMap()
QMap< QByteArray, PostingList > PostingDB::toTestMap | ( | ) | const |
Definition at line 292 of file postingdb.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.