xapian-core  1.4.21
glass_document.cc
Go to the documentation of this file.
1 
24 #include <config.h>
25 
26 #include "glass_document.h"
27 
28 #include "debuglog.h"
29 #include "glass_database.h"
30 #include "glass_values.h"
31 #include "glass_docdata.h"
32 
37 string
39 {
40  LOGCALL(DB, string, "GlassDocument::do_get_value", slot);
42 }
43 
46 void
47 GlassDocument::do_get_all_values(map<Xapian::valueno, string> & values_) const
48 {
49  LOGCALL_VOID(DB, "GlassDocument::do_get_all_values", values_);
50  value_manager->get_all_values(values_, did);
51 }
52 
55 string
57 {
58  LOGCALL(DB, string, "GlassDocument::do_get_data", NO_ARGS);
60 }
#define RETURN(A)
Definition: debuglog.h:482
string do_get_value(Xapian::valueno slot) const
Implementation of virtual methods.
Xapian::docid did
The document ID of the document in that database.
Definition: document.h:88
Subclass of GlassTable which holds document data.
const GlassValueManager * value_manager
Used for lazy access to document values.
#define LOGCALL_VOID(CATEGORY, FUNC, PARAMS)
Definition: debuglog.h:477
void do_get_all_values(map< Xapian::valueno, string > &values_) const
Retrieve all value values from the database.
C++ class definition for glass database.
std::string get_document_data(Xapian::docid did) const
Get the document data for document did.
Definition: glass_docdata.h:59
GlassValueManager class.
unsigned valueno
The number for a value slot in a document.
Definition: types.h:108
const GlassDocDataTable * docdata_table
Used for lazy access to document data.
A document read from a GlassDatabase.
Debug logging macros.
#define LOGCALL(CATEGORY, TYPE, FUNC, PARAMS)
Definition: debuglog.h:476
std::string get_value(Xapian::docid did, Xapian::valueno slot) const
string do_get_data() const
Retrieve the document data from the database.
void get_all_values(std::map< Xapian::valueno, std::string > &values, Xapian::docid did) const