34 LOGCALL(DB,
string,
"InMemoryDocument::fetch_value", slot);
40 auto i = values_.find(slot);
41 if (i == values_.end())
49 LOGCALL_VOID(DB,
"InMemoryDocument::fetch_all_values", values_);
63 LOGCALL(DB,
string,
"InMemoryDocument::fetch_data", NO_ARGS);
A database held entirely in memory.
static void throw_database_closed()
std::vector< std::string > doclists
std::vector< std::map< Xapian::valueno, std::string > > valuelists
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.
std::string fetch_data() const
Implementation of virtual methods.
#define LOGCALL(CATEGORY, TYPE, FUNC, PARAMS)
#define LOGCALL_VOID(CATEGORY, FUNC, PARAMS)
C++ class definition for inmemory database access.
A document read from a InMemoryDatabase.
unsigned valueno
The number for a value slot in a document.