strus  0.17
Public Member Functions | List of all members
strus::StatisticsProcessorInterface Class Referenceabstract

Interface for packing/unpacking messages with statistics used for query evaluation. More...

#include <statisticsProcessorInterface.hpp>

Public Member Functions

virtual ~StatisticsProcessorInterface ()
 Destructor. More...
 
virtual StatisticsViewerInterfacecreateViewer (const void *msgptr, std::size_t msgsize) const =0
 Creates a viewer for the contents of a statistics message. More...
 
virtual
StatisticsBuilderInterface
createBuilder () const =0
 Creates a builder for a statistics message. More...
 

Detailed Description

Interface for packing/unpacking messages with statistics used for query evaluation.

Note
this interface is used for distributing a search index

Constructor & Destructor Documentation

virtual strus::StatisticsProcessorInterface::~StatisticsProcessorInterface ( )
inlinevirtual

Destructor.

Member Function Documentation

virtual StatisticsBuilderInterface* strus::StatisticsProcessorInterface::createBuilder ( ) const
pure virtual

Creates a builder for a statistics message.

Parameters
[in]options_options for the message builder
Returns
the builder object (with ownership returned) or NULL in case of a memory allocation error
virtual StatisticsViewerInterface* strus::StatisticsProcessorInterface::createViewer ( const void *  msgptr,
std::size_t  msgsize 
) const
pure virtual

Creates a viewer for the contents of a statistics message.

Parameters
[in]msgptrpointer to the packed statistics message blob (not necessarily copied by the viewer, lifetime assumed longer than that of viewer)
[in]msgsizesize of the packed statistics message blob in bytes
Returns
the viewer object (with ownership returned) or NULL in case of a memory allocation error

The documentation for this class was generated from the following file: