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

Defines a program for analyzing a document, splitting it into normalized terms that can be fed to the strus IR engine. More...

#include <contentStatisticsContextInterface.hpp>

Public Member Functions

virtual ~ContentStatisticsContextInterface ()
 Destructor. More...
 
virtual void putContent (const std::string &docid, const std::string &content, const analyzer::DocumentClass &doctype)=0
 Put content to collect statistics. More...
 
virtual
analyzer::ContentStatisticsResult 
statistics ()=0
 Do return the overall statistics of the sample documents. More...
 
virtual int nofDocuments () const =0
 Get the number of sample documents only. More...
 

Detailed Description

Defines a program for analyzing a document, splitting it into normalized terms that can be fed to the strus IR engine.

Constructor & Destructor Documentation

virtual strus::ContentStatisticsContextInterface::~ContentStatisticsContextInterface ( )
inlinevirtual

Destructor.

Member Function Documentation

virtual int strus::ContentStatisticsContextInterface::nofDocuments ( ) const
pure virtual

Get the number of sample documents only.

Returns
the number of sample documents put
virtual void strus::ContentStatisticsContextInterface::putContent ( const std::string &  docid,
const std::string &  content,
const analyzer::DocumentClass doctype 
)
pure virtual

Put content to collect statistics.

Parameters
[in]dociddocument identifier as appearing in the result
[in]contentdocument content
[in]doctypedocument class (schema ignored) if defined, otherwise guessed
virtual analyzer::ContentStatisticsResult strus::ContentStatisticsContextInterface::statistics ( )
pure virtual

Do return the overall statistics of the sample documents.

Returns
the statistics structure

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