strus  0.17
vectorStorageInterface.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016 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  */
9 #ifndef _STRUS_VECTOR_STORGE_INTERFACE_HPP_INCLUDED
10 #define _STRUS_VECTOR_STORGE_INTERFACE_HPP_INCLUDED
11 #include <bitset>
12 #include <vector>
13 
14 namespace strus {
15 
17 class VectorStorageBuilderInterface;
19 class VectorStorageClientInterface;
21 class VectorStorageDumpInterface;
23 class DatabaseInterface;
24 
25 
28 {
29 public:
32 
37  virtual bool createStorage(
38  const std::string& configsource,
39  const DatabaseInterface* database) const=0;
40 
47  const std::string& configsource,
48  const DatabaseInterface* database) const=0;
49 
55  const std::string& configsource,
56  const DatabaseInterface* database) const=0;
57 };
58 
59 }//namespace
60 #endif
61 
62 
Interface to a repository for vectors representing word embeddings.
Definition: vectorStorageClientInterface.hpp:24
virtual VectorStorageClientInterface * createClient(const std::string &configsource, const DatabaseInterface *database) const =0
Create a new vector storage client interface.
virtual bool createStorage(const std::string &configsource, const DatabaseInterface *database) const =0
Create a data repository for the data of a vector storage.
Interface for fetching the dump of a strus vector storage.
Definition: vectorStorageDumpInterface.hpp:21
virtual VectorStorageDumpInterface * createDump(const std::string &configsource, const DatabaseInterface *database) const =0
Create a dump of the contents of a vector storage.
Interface for storing an retrieving vectors of floating point numbers representing word embeddings...
Definition: vectorStorageInterface.hpp:27
virtual ~VectorStorageInterface()
Destructor.
Definition: vectorStorageInterface.hpp:31
Interface to the create,destroy the key value store database.
Definition: databaseInterface.hpp:22