#include <submatch.h>


Public Member Functions | |
| virtual | ~SubMatch () |
| Virtual destructor. | |
| virtual bool | prepare_match (bool nowait, Xapian::Weight::Internal &total_stats)=0 |
| Fetch and collate statistics. | |
| virtual void | start_match (Xapian::doccount first, Xapian::doccount maxitems, Xapian::doccount check_at_least, const Xapian::Weight::Internal &total_stats)=0 |
| Start the match. | |
| virtual PostList * | get_postlist_and_term_info (MultiMatch *matcher, std::map< std::string, Xapian::MSet::Internal::TermFreqAndWeight > *termfreqandwts, Xapian::termcount *total_subqs_ptr)=0 |
| Get PostList and term info. | |
Definition at line 31 of file submatch.h.
| virtual SubMatch::~SubMatch | ( | ) | [inline, virtual] |
Virtual destructor.
Required because we have virtual methods and delete derived objects via a pointer to this base class.
Definition at line 38 of file submatch.h.
| virtual PostList* SubMatch::get_postlist_and_term_info | ( | MultiMatch * | matcher, | |
| std::map< std::string, Xapian::MSet::Internal::TermFreqAndWeight > * | termfreqandwts, | |||
| Xapian::termcount * | total_subqs_ptr | |||
| ) | [pure virtual] |
| virtual bool SubMatch::prepare_match | ( | bool | nowait, | |
| Xapian::Weight::Internal & | total_stats | |||
| ) | [pure virtual] |
Fetch and collate statistics.
Before we can calculate term weights we need to fetch statistics from each database involved and collate them.
| nowait | A RemoteSubMatch may not be able to report statistics when first asked. If nowait is true, it will return false in this situation allowing the matcher to ask other database. If nowait is false, then this method will block until statistics are available. | |
| total_stats | A stats object to which the statistics should be added. |
Implemented in LocalSubMatch, and RemoteSubMatch.
Referenced by prepare_sub_matches().
| virtual void SubMatch::start_match | ( | Xapian::doccount | first, | |
| Xapian::doccount | maxitems, | |||
| Xapian::doccount | check_at_least, | |||
| const Xapian::Weight::Internal & | total_stats | |||
| ) | [pure virtual] |
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. | |
| total_stats | The total statistics for the collection. |
Implemented in LocalSubMatch, and RemoteSubMatch.