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.

Constructor & Destructor Documentation

◆ MTimeDB()

MTimeDB::MTimeDB ( MDB_dbi dbi,
MDB_txn * txn )
explicit

Definition at line 15 of file mtimedb.cpp.

◆ ~MTimeDB()

MTimeDB::~MTimeDB ( )

Definition at line 23 of file mtimedb.cpp.

Member Function Documentation

◆ create()

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

MDB_dbi MTimeDB::open ( MDB_txn * txn)
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 Tue Mar 26 2024 11:20:16 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.