Defines the context for analyzing multi part documents, iterating on the sub documents defined, splitting them into normalized terms that can be fed to the strus IR engine.
More...
#include <documentAnalyzerContextInterface.hpp>
Defines the context for analyzing multi part documents, iterating on the sub documents defined, splitting them into normalized terms that can be fed to the strus IR engine.
virtual strus::DocumentAnalyzerContextInterface::~DocumentAnalyzerContextInterface |
( |
| ) |
|
|
inlinevirtual |
virtual bool strus::DocumentAnalyzerContextInterface::analyzeNext |
( |
analyzer::Document & |
doc | ) |
|
|
pure virtual |
Analyze the next sub document from the input feeded with putInput(const char*,std::size_t)
- Parameters
-
[out] | doc | the analyzed sub document structure |
- Returns
- true, if the next document could be fetched, false if more input has to be fed or no input left (EOF)
virtual void strus::DocumentAnalyzerContextInterface::putInput |
( |
const char * |
chunk, |
|
|
std::size_t |
chunksize, |
|
|
bool |
eof |
|
) |
| |
|
pure virtual |
Feed the analyzer with the next chunk of input to process.
- Parameters
-
[in] | chunk | pointer to input chunk to process |
[in] | chunksize | size of input chunk to process in bytes |
[in] | eof | true, if this chunk fed is the last one in input |
The documentation for this class was generated from the following file: