22 #ifndef XAPIAN_INCLUDED_REMOTESUBMATCH_H
23 #define XAPIAN_INCLUDED_REMOTESUBMATCH_H
RemoteDatabase is the baseclass for remote database implementations.
void send_global_stats(Xapian::doccount first, Xapian::doccount maxitems, Xapian::doccount check_at_least, const Xapian::KeyMaker *sorter, const Xapian::Weight::Internal &stats) const
Send the global stats to the remote server.
int get_read_fd() const
Get the underlying fd this remote connection reads from.
Xapian::MSet get_mset(const std::vector< opt_ptr_spy > &matchspies) const
Get the MSet from the remote server.
void accumulate_remote_stats(Xapian::Weight::Internal &total) const
Accumulate stats from the remote server.
Class for performing matching on a remote database.
RemoteSubMatch(const RemoteSubMatch &)=delete
Don't allow copying.
void start_match(Xapian::doccount first, Xapian::doccount maxitems, Xapian::doccount check_at_least, const Xapian::KeyMaker *sorter, const Xapian::Weight::Internal &total_stats)
Start the match.
RemoteSubMatch & operator=(const RemoteSubMatch &)=delete
Don't allow assignment.
const RemoteDatabase * db
The remote database.
Xapian::doccount shard
Index of this subdatabase.
RemoteSubMatch(const RemoteDatabase *db_, Xapian::doccount shard_)
Constructor.
Xapian::doccount get_shard() const
Return the index of the corresponding Database shard.
Xapian::MSet get_mset(const std::vector< opt_ptr_spy > &matchspies)
Get MSet.
void prepare_match(Xapian::Weight::Internal &total_stats)
Fetch and collate statistics.
Xapian::Internal::opt_intrusive_ptr< Xapian::MatchSpy > opt_ptr_spy
Virtual base class for key making functors.
Class representing a list of search results.
Class to hold statistics for a given collection.
The Xapian namespace contains public interfaces for the Xapian library.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
RemoteDatabase is the baseclass for remote database implementations.