|
JASSv2
|
Serialse an index into a forward index in XML. More...
#include <serialise_forward_index.h>


Public Member Functions | |
| serialise_forward_index (size_t documents) | |
| Constructor. More... | |
| ~serialise_forward_index () | |
| void | finish (void) |
| virtual void | operator() (const slice &term, const index_postings &postings, compress_integer::integer document_frequency, compress_integer::integer *document_ids, index_postings_impact::impact_type *term_frequencies) |
| The callback function to serialise the postings (given the term) is operator(). More... | |
| virtual void | operator() (size_t document_id, const slice &primary_key) |
| The callback function to serialise the primary keys (external document ids) is operator(). More... | |
Public Member Functions inherited from JASS::index_manager::delegate | |
| delegate (size_t documents) | |
| Destructor. | |
| virtual | ~delegate () |
| Destructor. | |
Static Public Member Functions | |
| static void | unittest (void) |
| Unit test this class. | |
Private Attributes | |
| std::vector< std::ostringstream > | document |
| Each document is represented as a string. | |
Additional Inherited Members | |
Public Attributes inherited from JASS::index_manager::delegate | |
| size_t | documents |
| The number of documents in the collection. | |
Serialse an index into a forward index in XML.
| JASS::serialise_forward_index::serialise_forward_index | ( | size_t | documents | ) |
Constructor.
| documents | [in] The numner of socuments in the collection. |
|
inline |
Destructor
|
virtual |
Do any final cleaning up
Implements JASS::index_manager::delegate.
|
virtual |
The callback function to serialise the postings (given the term) is operator().
| term | [in] The term name. |
| postings | [in] The postings lists. |
| document_frequency | [in] The document frequency of the term |
| document_ids | [in] An array (of length document_frequency) of document ids. |
| term_frequencies | [in] An array (of length document_frequency) of term frequencies (corresponding to document_ids). |
Implements JASS::index_manager::delegate.
|
virtual |
The callback function to serialise the primary keys (external document ids) is operator().
| document_id | [in] The internal document identfier. |
| primary_key | [in] This document's primary key (external document identifier). |
Implements JASS::index_manager::delegate.
1.8.13