Object representing a client connection to a vector storage.
More...
#include <bindingObjects.hpp>
Object representing a client connection to a vector storage.
strus::VectorStorageClient::~VectorStorageClient |
( |
| ) |
|
|
inline |
void strus::VectorStorageClient::close |
( |
| ) |
|
Controlled close to free resources (forcing free resources in interpreter context with garbage collector)
StringVector strus::VectorStorageClient::conceptClassNames |
( |
| ) |
const |
Get the list of concept class names defined.
- Returns
- the list
IndexVector strus::VectorStorageClient::conceptFeatures |
( |
const String & |
conceptClass, |
|
|
const Index & |
conceptid |
|
) |
| const |
Get the list of indices of features represented by a learnt concept feature.
- Parameters
-
[in] | conceptClass | name identifying a class of concepts learnt |
[in] | conceptid | index (indices of learnt concepts starting from 1) |
- Returns
- the resulting vector indices (index is order of insertion starting from 0)
String strus::VectorStorageClient::config |
( |
| ) |
const |
Get the configuration of this model.
- Returns
- the configuration string
Create a searcher object for scanning the vectors for similarity.
- Parameters
-
[in] | range_from | start range of the features for the searcher (possibility to split into multiple searcher instances) |
[in] | range_to | end of range of the features for the searcher (possibility to split into multiple searcher instances) |
- Returns
- the vector search interface (with ownership)
Create a vector storage transaction instance.
IndexVector strus::VectorStorageClient::featureConcepts |
( |
const String & |
conceptClass, |
|
|
const Index & |
index |
|
) |
| const |
Get the set of learnt concepts of a class for a feature defined.
- Parameters
-
[in] | conceptClass | name identifying a class of concepts learnt |
[in] | index | index of vector in the order of insertion starting from 0 |
- Returns
- the resulting concept feature indices (indices of learnt concepts starting from 1)
Index strus::VectorStorageClient::featureIndex |
( |
const String & |
name | ) |
const |
Get the index starting from 0 of a feature by its name.
- Parameters
-
[in] | name | name of the feature |
- Returns
- index -1, if not found, else index of the feature to get the name of (index is order of insertion starting with 0)
String strus::VectorStorageClient::featureName |
( |
const Index & |
index | ) |
const |
Get the name of a feature by its index starting from 0.
- Parameters
-
[in] | index | index of the feature (starting from 0) |
- Returns
- the name of the feature defined
FloatVector strus::VectorStorageClient::featureVector |
( |
const Index & |
index | ) |
const |
Get the vector assigned to a feature addressed by index.
- Parameters
-
[in] | index | index of the feature (starting from 0) return the vector |
unsigned int strus::VectorStorageClient::nofConcepts |
( |
const String & |
conceptClass | ) |
const |
Get the number of concept features learned for a class.
- Parameters
-
[in] | conceptClass | name identifying a class of concepts learnt. |
- Returns
- the number of concept features and also the maximum number assigned to a feature (starting with 1)
unsigned int strus::VectorStorageClient::nofFeatures |
( |
| ) |
const |
Get the number of feature vectors defined.
- Returns
- the number of features
The documentation for this class was generated from the following file: