Baloo::DocumentDB

Search for usage in LXR

#include <documentdb.h>

Public Member Functions

 DocumentDB (MDB_dbi dbi, MDB_txn *txn)
 
bool contains (quint64 docId)
 
void del (quint64 docId)
 
QVector< QByteArrayget (quint64 docId)
 
void put (quint64 docId, const QVector< QByteArray > &list)
 
uint size ()
 
QMap< quint64, QVector< QByteArray > > toTestMap () const
 

Static Public Member Functions

static MDB_dbi create (const char *name, MDB_txn *txn)
 
static MDB_dbi open (const char *name, MDB_txn *txn)
 

Detailed Description

Implements storage for a set of s for the given docId Instantiated for:

  • document (content) terms
  • filename terms
  • xattr terms

Definition at line 25 of file documentdb.h.

Constructor & Destructor Documentation

◆ DocumentDB()

DocumentDB::DocumentDB ( MDB_dbi dbi,
MDB_txn * txn )

Definition at line 14 of file documentdb.cpp.

◆ ~DocumentDB()

DocumentDB::~DocumentDB ( )

Definition at line 22 of file documentdb.cpp.

Member Function Documentation

◆ contains()

bool DocumentDB::contains ( quint64 docId)

Definition at line 109 of file documentdb.cpp.

◆ create()

MDB_dbi DocumentDB::create ( const char * name,
MDB_txn * txn )
static

Definition at line 26 of file documentdb.cpp.

◆ del()

void DocumentDB::del ( quint64 docId)

Definition at line 95 of file documentdb.cpp.

◆ get()

QVector< QByteArray > DocumentDB::get ( quint64 docId)

Definition at line 71 of file documentdb.cpp.

◆ open()

MDB_dbi DocumentDB::open ( const char * name,
MDB_txn * txn )
static

Definition at line 38 of file documentdb.cpp.

◆ put()

void DocumentDB::put ( quint64 docId,
const QVector< QByteArray > & list )

Definition at line 50 of file documentdb.cpp.

◆ size()

uint DocumentDB::size ( )

Definition at line 129 of file documentdb.cpp.

◆ toTestMap()

QMap< quint64, QVector< QByteArray > > DocumentDB::toTestMap ( ) const

Definition at line 141 of file documentdb.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 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.