strus  0.17
Public Member Functions | List of all members
strus::VectorStorageInterface Class Referenceabstract

Interface for storing an retrieving vectors of floating point numbers representing word embeddings. More...

#include <vectorStorageInterface.hpp>

Public Member Functions

virtual ~VectorStorageInterface ()
 Destructor. More...
 
virtual bool createStorage (const std::string &configsource, const DatabaseInterface *database) const =0
 Create a data repository for the data of a vector storage. More...
 
virtual
VectorStorageClientInterface
createClient (const std::string &configsource, const DatabaseInterface *database) const =0
 Create a new vector storage client interface. More...
 
virtual
VectorStorageDumpInterface
createDump (const std::string &configsource, const DatabaseInterface *database) const =0
 Create a dump of the contents of a vector storage. More...
 

Detailed Description

Interface for storing an retrieving vectors of floating point numbers representing word embeddings.

Constructor & Destructor Documentation

virtual strus::VectorStorageInterface::~VectorStorageInterface ( )
inlinevirtual

Destructor.

Member Function Documentation

virtual VectorStorageClientInterface* strus::VectorStorageInterface::createClient ( const std::string &  configsource,
const DatabaseInterface database 
) const
pure virtual

Create a new vector storage client interface.

Parameters
[in]configsourceconfiguration string of the storage and the database (not a filename!)
[in]databasedatabase type of the persistent storage
Returns
the client interface (with ownership)
Remarks
The repository refered to by the configuration must exist and must have been built (-> createRepository)
virtual VectorStorageDumpInterface* strus::VectorStorageInterface::createDump ( const std::string &  configsource,
const DatabaseInterface database 
) const
pure virtual

Create a dump of the contents of a vector storage.

Parameters
[in]configsourceConfiguration source string describing the storage and the database (not a filename !)
[in]databasekey value store database type used by the vector storage
Returns
the object to fetch the dump from
virtual bool strus::VectorStorageInterface::createStorage ( const std::string &  configsource,
const DatabaseInterface database 
) const
pure virtual

Create a data repository for the data of a vector storage.

Parameters
[in]configsourceconfiguration string of the storage and the database (not a filename!)
[in]databasedatabase type for the repository
Returns
true on success, false if an error occurred

The documentation for this class was generated from the following file: