Baloo::PostingDB

Search for usage in LXR

#include <postingdb.h>

Public Types

enum  Comparator { LessEqual , GreaterEqual }
 

Public Member Functions

 PostingDB (MDB_dbi, MDB_txn *txn)
 
PostingIteratorcompIter (const QByteArray &prefix, const QByteArray &val, Comparator com)
 
PostingIteratorcompIter (const QByteArray &prefix, double val, Comparator com)
 
PostingIteratorcompIter (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< QByteArrayfetchTermsStartingWith (const QByteArray &term)
 
PostingList get (const QByteArray &term)
 
PostingIteratoriter (const QByteArray &term)
 
PostingIteratorprefixIter (const QByteArray &term)
 
void put (const QByteArray &term, const PostingList &list)
 
PostingIteratorregexpIter (const QRegularExpression &regexp, const QByteArray &prefix)
 
QMap< QByteArray, PostingListtoTestMap () 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]

template<typename T >
std::enable_if< std::is_integral< T >::value, PostingIterator * >::type Baloo::PostingDB::compIter ( const QByteArray & prefix,
T val,
Comparator com )
inline

Definition at line 51 of file postingdb.h.

◆ create()

MDB_dbi PostingDB::create ( MDB_txn * txn)
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()

MDB_dbi PostingDB::open ( MDB_txn * txn)
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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:18:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.