strus  0.17
storage_prgload_std.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018 Patrick P. Frey
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7  */
10 #ifndef _STRUS_STORAGE_PRGLOAD_LIB_HPP_INCLUDED
11 #define _STRUS_STORAGE_PRGLOAD_LIB_HPP_INCLUDED
12 #include "strus/index.hpp"
13 #include <string>
14 #include <vector>
15 #include <map>
16 
18 namespace strus {
19 
21 class FileLocatorInterface;
23 class QueryProcessorInterface;
25 class QueryEvalInterface;
27 class QueryInterface;
29 class StorageClientInterface;
31 class VectorStorageClientInterface;
33 class ErrorBufferInterface;
34 
35 
44  QueryEvalInterface& qeval,
45  const std::vector<std::string>& analyzerterms,
46  const QueryProcessorInterface* qproc,
47  const std::string& source,
48  ErrorBufferInterface* errorhnd);
49 
59  StorageClientInterface& storage,
60  const std::string& metadataName,
61  const std::multimap<std::string,strus::Index>* attributemapref,
62  const std::string& file,
63  int commitSize,
64  ErrorBufferInterface* errorhnd);
65 
75  StorageClientInterface& storage,
76  const std::string& attributeName,
77  const std::multimap<std::string,strus::Index>* attributemapref,
78  const std::string& file,
79  int commitSize,
80  ErrorBufferInterface* errorhnd);
81 
90  StorageClientInterface& storage,
91  const std::multimap<std::string,strus::Index>* attributemapref,
92  const std::string& file,
93  int commitSize,
94  ErrorBufferInterface* errorhnd);
95 
104 bool load_vectors(
105  VectorStorageClientInterface* vstorage,
106  const std::string& vectorfile,
107  bool networkOrder,
108  char typeValueSeparator,
109  int commitSize,
110  ErrorBufferInterface* errorhnd);
111 
112 }//namespace
113 #endif
114 
bool load_queryeval_program(QueryEvalInterface &qeval, const std::vector< std::string > &analyzerterms, const QueryProcessorInterface *qproc, const std::string &source, ErrorBufferInterface *errorhnd)
Load a query evaluation program from source.
int load_attribute_assignments(StorageClientInterface &storage, const std::string &attributeName, const std::multimap< std::string, strus::Index > *attributemapref, const std::string &file, int commitSize, ErrorBufferInterface *errorhnd)
Load some attribute assignments for a storage from a stream.
Numeric types used for local and global indices.
int load_metadata_assignments(StorageClientInterface &storage, const std::string &metadataName, const std::multimap< std::string, strus::Index > *attributemapref, const std::string &file, int commitSize, ErrorBufferInterface *errorhnd)
Load some meta data assignments for a storage from a stream.
int load_user_assignments(StorageClientInterface &storage, const std::multimap< std::string, strus::Index > *attributemapref, const std::string &file, int commitSize, ErrorBufferInterface *errorhnd)
Load some user rights assignments for a storage from a stream.
bool load_vectors(VectorStorageClientInterface *vstorage, const std::string &vectorfile, bool networkOrder, char typeValueSeparator, int commitSize, ErrorBufferInterface *errorhnd)
Adds the feature definitions in the file (word2vec text or binary format) given by a path to a vector...