• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

NepomukDaemons

sopranoindexreader.h

Go to the documentation of this file.
00001 /*
00002    Copyright (C) 2007-2008 Sebastian Trueg <trueg@kde.org>
00003 
00004    This program is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU General Public License as
00006    published by the Free Software Foundation; either version 2 of
00007    the License, or (at your option) any later version.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU General Public License
00015    along with this library; see the file COPYING.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017    Boston, MA 02110-1301, USA.
00018  */
00019 
00020 #ifndef STRIGI_SOPRANO_INDEX_READER_H
00021 #define STRIGI_SOPRANO_INDEX_READER_H
00022 
00023 #include <strigi/indexreader.h>
00024 
00025 namespace Soprano {
00026     class Model;
00027     namespace Index {
00028     class IndexFilterModel;
00029     }
00030 }
00031 
00032 namespace Strigi {
00033 
00034     class Query;
00035 
00036     namespace Soprano {
00037         class IndexReader : public Strigi::IndexReader
00038         {
00039         public:
00040             IndexReader( ::Soprano::Model* );
00041             ~IndexReader();
00042 
00043             int32_t countHits( const Query& query );
00044             std::vector<IndexedDocument> query( const Query&, int off, int max );
00045             void getHits( const Strigi::Query& query,
00046                           const std::vector<std::string>& fields,
00047                           const std::vector<Strigi::Variant::Type>& types,
00048                           std::vector<std::vector<Strigi::Variant> >& result,
00049                           int off, int max );
00050 
00051             void getChildren( const std::string& parent,
00052                               std::map<std::string, time_t>& children );
00053 
00054             int32_t countDocuments();
00055             int32_t countWords();
00056             int64_t indexSize();
00057             time_t mTime( const std::string& uri );
00058             std::vector<std::string> fieldNames();
00059             std::vector<std::pair<std::string,uint32_t> > histogram( const std::string& query,
00060                                                                      const std::string& fieldname,
00061                                                                      const std::string& labeltype );
00062             int32_t countKeywords( const std::string& keywordprefix,
00063                                    const std::vector<std::string>& fieldnames);
00064             std::vector<std::string> keywords( const std::string& keywordmatch,
00065                                                const std::vector<std::string>& fieldnames,
00066                                                uint32_t max, uint32_t offset );
00067 
00068         private:
00069             class Private;
00070             Private* d;
00071         };
00072     }
00073 }
00074 
00075 #endif

NepomukDaemons

Skip menu "NepomukDaemons"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • KCMShell
  • KNotify
  • KStyles
  • Nepomuk Daemons
Generated for API Reference by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal