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().
Definition: serialise_forward_index.cpp:65
Non-thread-safe object that accumulates a single postings list during indexing.
Definition: index_postings.h:40
C++ slices (string-descriptors)
Definition: slice.h:27
~serialise_forward_index()
Definition: serialise_forward_index.h:51
Base class for the indexer object that stored the actual index during indexing.
uint32_t integer
This class and descendants will work on integers of this size. Do not change without also changing JA...
Definition: compress_integer.h:40
Partial file and whole file based I/O methods.
Serialse an index into a forward index in XML.
Definition: serialise_forward_index.h:27
std::vector< std::ostringstream > document
Each document is represented as a string.
Definition: serialise_forward_index.h:30
Definition: document_id.h:16
uint16_t impact_type
An impact value (i.e. a term frequency value) is of this type.
Definition: index_postings_impact.h:41
size_t documents
The number of documents in the collection.
Definition: index_manager.h:50
Base class for the callback function called by iterate.
Definition: index_manager.h:47
Definition: compress_integer_elias_delta_simd.c:23
static void unittest(void)
Unit test this class.
Definition: serialise_forward_index.cpp:85
void finish(void)
Definition: serialise_forward_index.cpp:32