22 #ifndef XAPIAN_INCLUDED_REMOTE_DATABASE_H 23 #define XAPIAN_INCLUDED_REMOTE_DATABASE_H 87 mutable int pending_reply = -1;
112 mutable bool uncommitted_changes =
false;
115 const std::string & body = std::string())
const;
133 bool writable,
int flags);
142 (void)get_message(message, required_type, required_type);
151 void send_message(
message_type type,
const string & data)
const;
156 bool get_posting(
Xapian::docid &did,
double &w,
string &value);
192 bool sort_value_forward,
194 int percent_cutoff,
double weight_cutoff,
216 TermList * open_metadata_keylist(
const std::string & prefix)
const;
222 TermList * open_allterms(
const string & prefix)
const;
224 bool has_positions()
const;
230 LeafPostList * open_post_list(
const string & tname)
const;
235 const string & tname)
const;
252 bool term_exists(
const string & tname)
const;
254 void get_freqs(
const string & term,
275 void delete_document(
const std::string & unique_term);
278 Xapian::docid replace_document(
const std::string & unique_term,
281 std::string get_uuid()
const;
283 string get_metadata(
const string & key)
const;
285 void set_metadata(
const string & key,
const string & value);
292 if (path) *path = context;
299 #endif // XAPIAN_INCLUDED_REMOTE_DATABASE_H The Xapian namespace contains public interfaces for the Xapian library.
Class to hold statistics for a given slot.
void get_message(std::string &message, reply_type required_type) const
RemoteConnection class used by the remote backend.
Xapian::doccount doccount
The remote document count, given at open.
Base class for databases.
bool has_positional_info
Has positional information?
XAPIAN_TOTALLENGTH_TYPE totallength
The total length of all documents in a database.
reply_type
Reply types (server -> client).
string context
The context to return with any error messages.
A document in the database, possibly plus modifications.
Class representing a list of search results.
Abstract base class for termlists.
Abstract base class for leaf postlists.
int get_backend_info(string *path) const
Get backend information about this database.
double timeout
The timeout value used in network communications, in seconds.
Xapian::totallength total_length
The total length of all documents in this database.
ValueStats mru_valstats
The most recently used value statistics.
Xapian::docid lastdocid
The remote last docid, given at open.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
OwnedRemoteConnection link
The object which does the I/O.
Xapian::termcount doclen_lbound
A lower bound on the smallest document length in this database.
Class to hold statistics for a given collection.
string uuid
The UUID of the remote database.
Xapian::valueno mru_slot
The value slot for the most recently used value statistics.
RemoteDatabase is the baseclass for remote database implementations.
RemoteConnection which owns its own fd(s).
static Xapian::Query query(Xapian::Query::op op, const string &t1=string(), const string &t2=string(), const string &t3=string(), const string &t4=string(), const string &t5=string(), const string &t6=string(), const string &t7=string(), const string &t8=string(), const string &t9=string(), const string &t10=string())
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
unsigned valueno
The number for a value slot in a document.
message_type
Message types (client -> server).
bool get_message_or_done(std::string &message, reply_type required_type) const
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
Class representing a query.
Abstract base class for iterating term positions in a document.
docid_order
Ordering of docids.
A postlist in a remote database.
A handle representing a document in a Xapian database.
Abstract base class for weighting schemes.
Xapian::termcount doclen_ubound
An upper bound on the greatest document length in this database.