Interface for building a repository of vectors with classifiers to map them to discrete features.
More...
#include <vectorStorageTransactionInterface.hpp>
|
virtual | ~VectorStorageTransactionInterface () |
| Destructor. More...
|
|
virtual void | defineVector (const std::string &type, const std::string &feat, const WordVector &vec)=0 |
| Define a vector for a feature for later retrieval. More...
|
|
virtual void | defineFeature (const std::string &type, const std::string &feat)=0 |
| Define a feature without vector. More...
|
|
virtual void | defineScalar (const std::string &name, double value)=0 |
| Define some scalar configuration parameter used in calculation (depending on implementation) More...
|
|
virtual void | clear ()=0 |
| Clear all vectors,types and feature names in the storage. More...
|
|
virtual bool | commit ()=0 |
| Ensure the persistent storage of the features added with addFeature(const std::string&,const WordVector&) till now. More...
|
|
virtual void | rollback ()=0 |
| Rollback of the transaction, no changes made. More...
|
|
Interface for building a repository of vectors with classifiers to map them to discrete features.
virtual strus::VectorStorageTransactionInterface::~VectorStorageTransactionInterface |
( |
| ) |
|
|
inlinevirtual |
virtual void strus::VectorStorageTransactionInterface::clear |
( |
| ) |
|
|
pure virtual |
Clear all vectors,types and feature names in the storage.
virtual bool strus::VectorStorageTransactionInterface::commit |
( |
| ) |
|
|
pure virtual |
Ensure the persistent storage of the features added with addFeature(const std::string&,const WordVector&) till now.
- Returns
- true on success, false if failed
virtual void strus::VectorStorageTransactionInterface::defineFeature |
( |
const std::string & |
type, |
|
|
const std::string & |
feat |
|
) |
| |
|
pure virtual |
Define a feature without vector.
- Parameters
-
[in] | type | of the feature to add |
[in] | feat | name of the feature to add |
virtual void strus::VectorStorageTransactionInterface::defineScalar |
( |
const std::string & |
name, |
|
|
double |
value |
|
) |
| |
|
pure virtual |
Define some scalar configuration parameter used in calculation (depending on implementation)
- Parameters
-
[in] | name | name of the variable (depending on implementation) |
[in] | value | value assigned to the variable |
virtual void strus::VectorStorageTransactionInterface::defineVector |
( |
const std::string & |
type, |
|
|
const std::string & |
feat, |
|
|
const WordVector & |
vec |
|
) |
| |
|
pure virtual |
Define a vector for a feature for later retrieval.
- Parameters
-
[in] | type | of the feature associated with the vector |
[in] | feat | name of the feature associated with the vector |
[in] | vec | vector to define for this feature |
virtual void strus::VectorStorageTransactionInterface::rollback |
( |
| ) |
|
|
pure virtual |
Rollback of the transaction, no changes made.
The documentation for this class was generated from the following file: