File indexing completed on 2024-04-21 03:51:39

0001 /*
0002     This file is part of the KDE Baloo project.
0003     SPDX-FileCopyrightText: 2015 Vishesh Handa <vhanda@kde.org>
0004 
0005     SPDX-License-Identifier: LGPL-2.1-or-later
0006 */
0007 
0008 #ifndef BALOO_DATABASE_SIZE_H
0009 #define BALOO_DATABASE_SIZE_H
0010 
0011 #include <lmdb.h>
0012 
0013 namespace Baloo {
0014 
0015 class DatabaseSize {
0016 public:
0017     /**
0018      * This is the size which is computed with all the pages used from all the
0019      * individual database pages
0020      */
0021     size_t expectedSize;
0022 
0023     /**
0024      * This is the size based on the MDB_env and the total number of pages used
0025      */
0026     size_t actualSize;
0027 
0028     size_t postingDb;
0029     size_t positionDb;
0030 
0031     size_t docTerms;
0032     size_t docFilenameTerms;
0033     size_t docXattrTerms;
0034 
0035     size_t idTree;
0036     size_t idFilename;
0037 
0038     size_t docTime;
0039     size_t docData;
0040 
0041     size_t contentIndexingIds;
0042     size_t failedIds;
0043 
0044     size_t mtimeDb;
0045 };
0046 
0047 }
0048 #endif