defined data access interface for external indexers

This commit is contained in:
Jean-Francois Dockes
2016-06-01 09:46:47 +02:00
parent 03063f58dc
commit 1aea57fcb2
7 changed files with 197 additions and 10 deletions
+2 -2
View File
@@ -42,7 +42,7 @@ public:
/** A RawDoc is the data for a document-holding entity either as a
memory block, or pointed to by a file name */
struct RawDoc {
enum RawDocKind {RDK_FILENAME, RDK_DATA};
enum RawDocKind {RDK_FILENAME, RDK_DATA, RDK_DATADIRECT};
RawDocKind kind;
std::string data; // Doc data or file name
struct stat st; // Only used if RDK_FILENAME
@@ -71,6 +71,6 @@ public:
};
/** Return an appropriate fetcher object given the backend string identifier */
DocFetcher *docFetcherMake(const Rcl::Doc& idoc);
DocFetcher *docFetcherMake(RclConfig *config, const Rcl::Doc& idoc);
#endif /* _FETCHER_H_INCLUDED_ */