strusUtilities  0.17
Functions
strus Namespace Reference

strus toplevel namespace More...

Functions

FileCrawlerInterface * createFileCrawlerInterface (const std::string &path, int chunkSize, const std::string &extension, ErrorBufferInterface *errorhnd)
 Create an interface for loading files in chunks for multithreaded processing. More...
 

Detailed Description

strus toplevel namespace

Function Documentation

FileCrawlerInterface* strus::createFileCrawlerInterface ( const std::string &  path,
int  chunkSize,
const std::string &  extension,
ErrorBufferInterface *  errorhnd 
)

Create an interface for loading files in chunks for multithreaded processing.

Parameters
[in]pathpath where to load files from
[in]chunkSizemaximum number of files per chunk loaded
[in]extensionextension of the files to load, empty if no restriction on the extension given
[in]errorhnderror buffer interface for exceptions thrown
Returns
the file crawler interface (with ownership)