xapian-core  2.0.0
honey_document.cc
Go to the documentation of this file.
1 
4 /* Copyright 2017 Olly Betts
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; either version 2 of the
9  * License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, see
18  * <https://www.gnu.org/licenses/>.
19  */
20 
21 #include <config.h>
22 
23 #include "honey_document.h"
24 
25 #include "honey_docdata.h"
26 #include "honey_values.h"
27 
28 using namespace std;
29 
30 string
32 {
33  return value_manager->get_value(did, slot);
34 }
35 
36 void
37 HoneyDocument::fetch_all_values(map<Xapian::valueno, string>& values_) const
38 {
39  value_manager->get_all_values(values_, did);
40 }
41 
42 string
44 {
45  return docdata_table->get_document_data(did);
46 }
std::string fetch_data() const
Implementation of virtual methods.
std::string fetch_value(Xapian::valueno slot) const
Implementation of virtual methods.
void fetch_all_values(std::map< Xapian::valueno, std::string > &values_) const
Implementation of virtual methods.
Subclass of HoneyTable which holds document data.
A document read from a HoneyDatabase.
HoneyValueManager class.
unsigned valueno
The number for a value slot in a document.
Definition: types.h:90