The object that is fed postings_data by the index.
More...
#include <chunk_handler.h>
|
| producer (chunk_handler *parent) |
|
template<class Container > |
void | operator() (const secondary_key_type &key, const Container &counts) |
| Handler for when a given secondary_key has been processed and is ready to be added to the in-memory chunk. More...
|
|
| ~producer () |
| Destroys the producer, writing to disk any chunk data still resident in memory.
|
|
|
void | flush_chunk () |
| Flushes the current in-memory chunk to disk.
|
|
|
std::unordered_set< index_pdata_type > | pdata_ |
| Current in-memory chunk.
|
|
uint64_t | chunk_size_ |
| Current size of the in-memory chunk.
|
|
chunk_handler * | parent_ |
| Back-pointer to the handler this producer is operating on.
|
|
|
static const uint64_t constexpr | max_size = 1024 * 1024 * 128 |
| Maximum allowed size of a chunk in bytes before it is written.
|
|
template<class Index>
class meta::index::chunk_handler< Index >::producer
The object that is fed postings_data by the index.
- Parameters
-
parent | A back-pointer to the handler this producer is operating on |
template<class Index >
template<class Container >
Handler for when a given secondary_key has been processed and is ready to be added to the in-memory chunk.
- Parameters
-
key | The secondary key used to index the counts container |
counts | A collection of (primary_key_type, count) pairs |
The documentation for this class was generated from the following files: