|
xapian-core
2.0.0
|
Class for performing matching on a remote database. More...
#include <remotesubmatch.h>
Collaboration diagram for RemoteSubMatch:Public Types | |
| typedef Xapian::Internal::opt_intrusive_ptr< Xapian::MatchSpy > | opt_ptr_spy |
Public Member Functions | |
| RemoteSubMatch (const RemoteDatabase *db_, Xapian::doccount shard_) | |
| Constructor. More... | |
| int | get_read_fd () const |
| void | prepare_match (Xapian::Weight::Internal &total_stats) |
| Fetch and collate statistics. More... | |
| 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. More... | |
| Xapian::MSet | get_mset (const std::vector< opt_ptr_spy > &matchspies) |
| Get MSet. More... | |
| Xapian::doccount | get_shard () const |
| Return the index of the corresponding Database shard. More... | |
Private Member Functions | |
| RemoteSubMatch & | operator= (const RemoteSubMatch &)=delete |
| Don't allow assignment. More... | |
| RemoteSubMatch (const RemoteSubMatch &)=delete | |
| Don't allow copying. More... | |
Private Attributes | |
| const RemoteDatabase * | db |
| The remote database. More... | |
| Xapian::doccount | shard |
| Index of this subdatabase. More... | |
Class for performing matching on a remote database.
Definition at line 33 of file remotesubmatch.h.
Definition at line 84 of file remotesubmatch.h.
|
privatedelete |
Don't allow copying.
|
inline |
Constructor.
Definition at line 48 of file remotesubmatch.h.
|
inline |
Get MSet.
| matchspies | The matchspies to use. |
Definition at line 90 of file remotesubmatch.h.
References db, and RemoteDatabase::get_mset().
Referenced by Matcher::get_mset().
|
inline |
Definition at line 51 of file remotesubmatch.h.
References db, and RemoteDatabase::get_read_fd().
|
inline |
Return the index of the corresponding Database shard.
Definition at line 95 of file remotesubmatch.h.
References shard.
Referenced by Matcher::get_mset().
|
privatedelete |
Don't allow assignment.
|
inline |
Fetch and collate statistics.
Before we can calculate term weights we need to fetch statistics from each database involved and collate them.
| total_stats | A stats object to which the statistics should be added. |
Definition at line 63 of file remotesubmatch.h.
References RemoteDatabase::accumulate_remote_stats(), and db.
|
inline |
Start the match.
| first | The first item in the result set to return. |
| maxitems | The maximum number of items to return. |
| check_at_least | The minimum number of items to check. |
| sorter | KeyMaker for sort keys (NULL for none). |
| total_stats | The total statistics for the collection. |
Definition at line 75 of file remotesubmatch.h.
References db, and RemoteDatabase::send_global_stats().
Referenced by Matcher::get_mset().
|
private |
The remote database.
Definition at line 41 of file remotesubmatch.h.
Referenced by get_mset(), get_read_fd(), prepare_match(), and start_match().
|
private |
Index of this subdatabase.
Definition at line 44 of file remotesubmatch.h.
Referenced by get_shard().