10 #ifndef _STRUS_STATISTICS_BUILDER_INTERFACE_HPP_INCLUDED
11 #define _STRUS_STATISTICS_BUILDER_INTERFACE_HPP_INCLUDED
37 const char* termvalue,
41 virtual void start()=0;
50 virtual bool fetchMessage(
const void*& blk, std::size_t& blksize)=0;
virtual void start()=0
Mark the current state that can be restored with a rollback.
virtual void addDfChange(const char *termtype, const char *termvalue, int increment)=0
Add a message propagating a change in the df (document frequency)
virtual bool fetchMessage(const void *&blk, std::size_t &blksize)=0
Get the packed statistics message.
virtual void setNofDocumentsInsertedChange(int increment)=0
Define the change of the number of document inserted.
Interface for a builder for a statistics message (distributed index)
Definition: statisticsBuilderInterface.hpp:19
virtual ~StatisticsBuilderInterface()
Destructor.
Definition: statisticsBuilderInterface.hpp:23
virtual void rollback()=0
Rollback to the last state marked with 'start()'.