Interface for a builder for a statistics message (distributed index)
More...
#include <statisticsBuilderInterface.hpp>
Interface for a builder for a statistics message (distributed index)
virtual strus::StatisticsBuilderInterface::~StatisticsBuilderInterface |
( |
| ) |
|
|
inlinevirtual |
virtual void strus::StatisticsBuilderInterface::addDfChange |
( |
const char * |
termtype, |
|
|
const char * |
termvalue, |
|
|
int |
increment |
|
) |
| |
|
pure virtual |
Add a message propagating a change in the df (document frequency)
- Parameters
-
[in] | termtype | type of the term |
[in] | termvalue | value of the term |
[in] | increment | positive or negative (decrement) value of the local change of the document frequency |
- Returns
- true on success, false in case of an error (memory allocation error)
virtual bool strus::StatisticsBuilderInterface::fetchMessage |
( |
const void *& |
blk, |
|
|
std::size_t & |
blksize |
|
) |
| |
|
pure virtual |
Get the packed statistics message.
- Parameters
-
[out] | blk | pointer to the message |
[out] | blksize | size of message blk in bytes |
- Returns
- true, if there is a message returned to be sent, false if not or an error occurred
virtual void strus::StatisticsBuilderInterface::rollback |
( |
| ) |
|
|
pure virtual |
Rollback to the last state marked with 'start()'.
virtual void strus::StatisticsBuilderInterface::setNofDocumentsInsertedChange |
( |
int |
increment | ) |
|
|
pure virtual |
Define the change of the number of document inserted.
- Parameters
-
[in] | increment | positive or negative (decrement) value of the local change of the collection size |
virtual void strus::StatisticsBuilderInterface::start |
( |
| ) |
|
|
pure virtual |
Mark the current state that can be restored with a rollback.
The documentation for this class was generated from the following file: