btrievePython 16.10.30.0b0__tar.gz → 16.10.30.0b1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {btrievepython-16.10.30.0b0/btrievePython.egg-info → btrievepython-16.10.30.0b1}/PKG-INFO +1 -1
- {btrievepython-16.10.30.0b0 → btrievepython-16.10.30.0b1}/btrievePython/__init__.py +10 -6
- {btrievepython-16.10.30.0b0 → btrievepython-16.10.30.0b1}/btrievePython/btrieveC.h +6 -4
- {btrievepython-16.10.30.0b0 → btrievepython-16.10.30.0b1}/btrievePython/btrieveCpp.h +55 -38
- {btrievepython-16.10.30.0b0 → btrievepython-16.10.30.0b1}/btrievePython/btrievePython.cpp +735 -193
- btrievepython-16.10.30.0b1/btrievePython/win32/btrieveCpp.lib +0 -0
- btrievepython-16.10.30.0b1/btrievePython/win64/btrieveCpp.lib +0 -0
- {btrievepython-16.10.30.0b0 → btrievepython-16.10.30.0b1/btrievePython.egg-info}/PKG-INFO +1 -1
- {btrievepython-16.10.30.0b0 → btrievepython-16.10.30.0b1}/pyproject.toml +1 -1
- {btrievepython-16.10.30.0b0 → btrievepython-16.10.30.0b1}/setup.cfg +1 -1
- btrievepython-16.10.30.0b0/btrievePython/win32/btrieveCpp.lib +0 -0
- btrievepython-16.10.30.0b0/btrievePython/win64/btrieveCpp.lib +0 -0
- {btrievepython-16.10.30.0b0 → btrievepython-16.10.30.0b1}/LICENSE.txt +0 -0
- {btrievepython-16.10.30.0b0 → btrievepython-16.10.30.0b1}/MANIFEST.in +0 -0
- {btrievepython-16.10.30.0b0 → btrievepython-16.10.30.0b1}/README.md +0 -0
- {btrievepython-16.10.30.0b0 → btrievepython-16.10.30.0b1}/btrievePython.egg-info/SOURCES.txt +0 -0
- {btrievepython-16.10.30.0b0 → btrievepython-16.10.30.0b1}/btrievePython.egg-info/dependency_links.txt +0 -0
- {btrievepython-16.10.30.0b0 → btrievepython-16.10.30.0b1}/btrievePython.egg-info/top_level.txt +0 -0
- {btrievepython-16.10.30.0b0 → btrievepython-16.10.30.0b1}/setup.py +0 -0
|
@@ -64,6 +64,9 @@ class _SwigNonDynamicMeta(type):
|
|
|
64
64
|
|
|
65
65
|
def buffer_view_attach(view: "Py_buffer *", obj: "PyObject *", buffer: "char **", size: "Py_ssize_t *") -> "int":
|
|
66
66
|
return _btrievePython.buffer_view_attach(view, obj, buffer, size)
|
|
67
|
+
|
|
68
|
+
def buffer_view_attach_const(view: "Py_buffer *", obj: "PyObject *", buffer: "char const **", size: "Py_ssize_t *") -> "int":
|
|
69
|
+
return _btrievePython.buffer_view_attach_const(view, obj, buffer, size)
|
|
67
70
|
class Btrieve(object):
|
|
68
71
|
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
|
|
69
72
|
|
|
@@ -534,6 +537,7 @@ class Btrieve(object):
|
|
|
534
537
|
STATUS_CODE_UT_THUNK_NOT_LOADED = _btrievePython.Btrieve_STATUS_CODE_UT_THUNK_NOT_LOADED
|
|
535
538
|
STATUS_CODE_NO_RESOURCE_DLL = _btrievePython.Btrieve_STATUS_CODE_NO_RESOURCE_DLL
|
|
536
539
|
STATUS_CODE_OS_ERROR = _btrievePython.Btrieve_STATUS_CODE_OS_ERROR
|
|
540
|
+
STATUS_CODE_FILTER_LIMIT_EXCEEDED = _btrievePython.Btrieve_STATUS_CODE_FILTER_LIMIT_EXCEEDED
|
|
537
541
|
STATUS_CODE_MK_ROUTER_MEM_ERROR = _btrievePython.Btrieve_STATUS_CODE_MK_ROUTER_MEM_ERROR
|
|
538
542
|
STATUS_CODE_MK_NO_LOCAL_ACCESS_ALLOWED = _btrievePython.Btrieve_STATUS_CODE_MK_NO_LOCAL_ACCESS_ALLOWED
|
|
539
543
|
STATUS_CODE_MK_NO_RESOURCE_DLL = _btrievePython.Btrieve_STATUS_CODE_MK_NO_RESOURCE_DLL
|
|
@@ -1847,22 +1851,22 @@ class BtrieveSpace(object):
|
|
|
1847
1851
|
def SetLastStatusCode(self, statusCode: "Btrieve::StatusCode") -> "Btrieve::StatusCode":
|
|
1848
1852
|
return _btrievePython.BtrieveSpace_SetLastStatusCode(self, statusCode)
|
|
1849
1853
|
|
|
1850
|
-
def EuclideanDistanceSimilarity(self, vector: "char const *", limit: "int", query: "char const *"=None) -> "
|
|
1854
|
+
def EuclideanDistanceSimilarity(self, vector: "char const *", limit: "int", query: "char const *"=None) -> "std::string":
|
|
1851
1855
|
return _btrievePython.BtrieveSpace_EuclideanDistanceSimilarity(self, vector, limit, query)
|
|
1852
1856
|
|
|
1853
|
-
def CosineSimilarity(self, vector: "char const *", limit: "int", query: "char const *"=None) -> "
|
|
1857
|
+
def CosineSimilarity(self, vector: "char const *", limit: "int", query: "char const *"=None) -> "std::string":
|
|
1854
1858
|
return _btrievePython.BtrieveSpace_CosineSimilarity(self, vector, limit, query)
|
|
1855
1859
|
|
|
1856
|
-
def DotProductSimilarity(self, vector: "char const *", limit: "int", query: "char const *"=None) -> "
|
|
1860
|
+
def DotProductSimilarity(self, vector: "char const *", limit: "int", query: "char const *"=None) -> "std::string":
|
|
1857
1861
|
return _btrievePython.BtrieveSpace_DotProductSimilarity(self, vector, limit, query)
|
|
1858
1862
|
|
|
1859
1863
|
def VectorCreate(self, *args) -> "int":
|
|
1860
1864
|
return _btrievePython.BtrieveSpace_VectorCreate(self, *args)
|
|
1861
1865
|
|
|
1862
|
-
def VectorRetrieveBlob(self,
|
|
1863
|
-
return _btrievePython.BtrieveSpace_VectorRetrieveBlob(self,
|
|
1866
|
+
def VectorRetrieveBlob(self, *args) -> "Btrieve::StatusCode":
|
|
1867
|
+
return _btrievePython.BtrieveSpace_VectorRetrieveBlob(self, *args)
|
|
1864
1868
|
|
|
1865
|
-
def VectorRetrieveJson(self, *args) -> "
|
|
1869
|
+
def VectorRetrieveJson(self, *args) -> "std::string":
|
|
1866
1870
|
return _btrievePython.BtrieveSpace_VectorRetrieveJson(self, *args)
|
|
1867
1871
|
|
|
1868
1872
|
def VectorUpdate(self, *args) -> "Btrieve::StatusCode":
|
|
@@ -403,6 +403,8 @@ typedef enum {
|
|
|
403
403
|
BTRIEVE_STATUS_CODE_NO_RESOURCE_DLL = 2011,
|
|
404
404
|
/// \brief 2012 - Operating system error.
|
|
405
405
|
BTRIEVE_STATUS_CODE_OS_ERROR = 2012,
|
|
406
|
+
/// \brief 2013 - Filter limit exceeded.
|
|
407
|
+
BTRIEVE_STATUS_CODE_FILTER_LIMIT_EXCEEDED = 2013,
|
|
406
408
|
/// \brief 3000 - MicroKernel router memory error.
|
|
407
409
|
BTRIEVE_STATUS_CODE_MK_ROUTER_MEM_ERROR = 3000,
|
|
408
410
|
/// \brief 3001 - MicroKernel no local access allowed.
|
|
@@ -2310,7 +2312,7 @@ extern LINKAGE btrieve_status_code_t BtrieveFileBulkRetrieveNext(btrieve_file_t
|
|
|
2310
2312
|
/// \param[in] file The file. See BtrieveClientFileOpen().
|
|
2311
2313
|
/// \param[in] comparison The comparison.
|
|
2312
2314
|
/// \param[in] index The index.
|
|
2313
|
-
/// \param[
|
|
2315
|
+
/// \param[inout] key The key.
|
|
2314
2316
|
/// \param[in] keyLength The key length.
|
|
2315
2317
|
/// \param[in] bulkRetrieveAttributes The bulk retrieve attributes. See BtrieveBulkRetrieveAttributesAllocate().
|
|
2316
2318
|
/// \param[out] bulkRetrieveResult The bulk retrieve result. See BtrieveBulkRetrieveResultAllocate().
|
|
@@ -2342,7 +2344,7 @@ extern LINKAGE btrieve_status_code_t BtrieveFileBulkRetrievePrevious(btrieve_fil
|
|
|
2342
2344
|
/// \param[in] file The file. See BtrieveClientFileOpen().
|
|
2343
2345
|
/// \param[in] comparison The comparison.
|
|
2344
2346
|
/// \param[in] index The index.
|
|
2345
|
-
/// \param[
|
|
2347
|
+
/// \param[inout] key The key.
|
|
2346
2348
|
/// \param[in] keyLength The key length.
|
|
2347
2349
|
/// \param[in] bulkRetrieveAttributes The bulk retrieve attributes. See BtrieveBulkRetrieveAttributesAllocate().
|
|
2348
2350
|
/// \param[out] bulkRetrieveResult The bulk retrieve result. See BtrieveBulkRetrieveResultAllocate().
|
|
@@ -2403,7 +2405,7 @@ extern LINKAGE btrieve_status_code_t BtrieveFileBulkDeleteNext(btrieve_file_t fi
|
|
|
2403
2405
|
/// \param[in] file The file. See BtrieveClientFileOpen().
|
|
2404
2406
|
/// \param[in] comparison The comparison.
|
|
2405
2407
|
/// \param[in] index The index.
|
|
2406
|
-
/// \param[
|
|
2408
|
+
/// \param[inout] key The key.
|
|
2407
2409
|
/// \param[in] keyLength The key length.
|
|
2408
2410
|
/// \param[in] bulkDeleteAttributes The bulk delete attributes. See BtrieveBulkDeleteAttributesAllocate().
|
|
2409
2411
|
/// \param[out] bulkDeleteResult The bulk delete result. See BtrieveBulkDeleteResultAllocate().
|
|
@@ -2433,7 +2435,7 @@ extern LINKAGE btrieve_status_code_t BtrieveFileBulkDeletePrevious(btrieve_file_
|
|
|
2433
2435
|
/// \param[in] file The file. See BtrieveClientFileOpen().
|
|
2434
2436
|
/// \param[in] comparison The comparison.
|
|
2435
2437
|
/// \param[in] index The index.
|
|
2436
|
-
/// \param[
|
|
2438
|
+
/// \param[inout] key The key.
|
|
2437
2439
|
/// \param[in] keyLength The key length.
|
|
2438
2440
|
/// \param[in] bulkDeleteAttributes The bulk delete attributes. See BtrieveBulkDeleteAttributesAllocate().
|
|
2439
2441
|
/// \param[out] bulkDeleteResult The bulk delete result. See BtrieveBulkDeleteResultAllocate().
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
#include <cstddef>
|
|
16
16
|
#include <deque>
|
|
17
|
+
#include <string>
|
|
17
18
|
|
|
18
19
|
#include "btrieveC.h"
|
|
19
20
|
|
|
@@ -1081,6 +1082,8 @@ public:
|
|
|
1081
1082
|
STATUS_CODE_NO_RESOURCE_DLL = 2011,
|
|
1082
1083
|
/// \brief 2012 - Operating system error.
|
|
1083
1084
|
STATUS_CODE_OS_ERROR = 2012,
|
|
1085
|
+
/// \brief 2013 - Filter limit exceeded.
|
|
1086
|
+
STATUS_CODE_FILTER_LIMIT_EXCEEDED = 2013,
|
|
1084
1087
|
/// \brief 3000 - MicroKernel router memory error.
|
|
1085
1088
|
STATUS_CODE_MK_ROUTER_MEM_ERROR = 3000,
|
|
1086
1089
|
/// \brief 3001 - MicroKernel no local access allowed.
|
|
@@ -1399,6 +1402,8 @@ public:
|
|
|
1399
1402
|
/// \param[in] clientIdentifier The client identifier. Use 0 to automatically generate a client identifier based on the caller's thread identifier.
|
|
1400
1403
|
/// \SNIPPET_CPP_PYTHON{BtrieveClient, btest.cpp, btest.py}
|
|
1401
1404
|
BtrieveClient(int serviceAgentIdentifier, int clientIdentifier);
|
|
1405
|
+
/// \par
|
|
1406
|
+
/// Any open collections, files or spaces will remain open. See BtrieveClient::CollectionClose, BtrieveClient::FileClose, and BtrieveClient::SpaceClose. Also see BtrieveClient::Reset.
|
|
1402
1407
|
~BtrieveClient();
|
|
1403
1408
|
|
|
1404
1409
|
/// \brief Get the version.
|
|
@@ -5089,10 +5094,12 @@ private:
|
|
|
5089
5094
|
/// ---------- | ------------- | ---------------- | ------- | ------------------ | ---- | -----------
|
|
5090
5095
|
/// _blobLength | no | yes | yes | yes | number | The vector blob length.
|
|
5091
5096
|
/// _createTime | no | yes | yes | yes | number | The vector create time in microseconds since the Unix Epoch.
|
|
5092
|
-
/// _id |
|
|
5097
|
+
/// _id | yes | yes | yes | no | number | The vector identifier.
|
|
5093
5098
|
/// _jsonLength | no | yes | yes | yes | number | The vector json length.
|
|
5094
5099
|
/// _label | yes | no | yes | yes | string | The vector label.
|
|
5095
5100
|
/// _updateTime | no | yes | yes | yes | number | The vector update time in microseconds since the Unix Epoch.
|
|
5101
|
+
/// _uuid | yes | yes | yes | no | string | The vector universally unique identifier.
|
|
5102
|
+
/// _vector | yes | no | no | yes | array | The vector as an array of numbers.
|
|
5096
5103
|
/// \details
|
|
5097
5104
|
/// Non-user settable JSON field names are silently ignored by BtrieveSpace::VectorCreate and BtrieveSpace::VectorUpdate.
|
|
5098
5105
|
/// Use of reserved JSON field names other than those listed above will generate an error.
|
|
@@ -5137,39 +5144,44 @@ public:
|
|
|
5137
5144
|
/// \retval "!= Btrieve::STATUS_CODE_NO_ERROR" \ERROR_HAS_OCCURRED
|
|
5138
5145
|
/// \see Btrieve::StatusCodeToString
|
|
5139
5146
|
Btrieve::StatusCode VectorRetrieveBlob(int id, char *blob, int blobSize, int vectorBlobOffset = 0, int vectorBlobLength = 0);
|
|
5147
|
+
/// \brief Retrieve a vector blob.
|
|
5148
|
+
/// \param[in] uuid The universally unique identifier.
|
|
5149
|
+
/// \param[out] blob The blob.
|
|
5150
|
+
/// \param[in] blobSize The blob size.
|
|
5151
|
+
/// \param[in] vectorBlobOffset The vector blob offset.
|
|
5152
|
+
/// \param[in] vectorBlobLength The vector blob length. If vector blob length is 0, then the entire vector blob will be retrieved beginning at vector blob offset.
|
|
5153
|
+
/// \retval "= Btrieve::STATUS_CODE_NO_ERROR" \SUCCESS
|
|
5154
|
+
/// \retval "!= Btrieve::STATUS_CODE_NO_ERROR" \ERROR_HAS_OCCURRED
|
|
5155
|
+
/// \see Btrieve::StatusCodeToString
|
|
5156
|
+
Btrieve::StatusCode VectorRetrieveBlob(const char *uuid, char *blob, int blobSize, int vectorBlobOffset = 0, int vectorBlobLength = 0);
|
|
5140
5157
|
/// \brief Retrieve a vector json.
|
|
5141
|
-
/// \note This method is not thread safe. The string returned will be overwritten on subsequent calls.
|
|
5142
5158
|
/// \param[in] id The identifier.
|
|
5143
|
-
/// \retval
|
|
5144
|
-
/// \retval
|
|
5145
|
-
|
|
5159
|
+
/// \retval !="" The json.
|
|
5160
|
+
/// \retval "" \ERROR_HAS_OCCURRED
|
|
5161
|
+
std::string VectorRetrieveJson(int id);
|
|
5162
|
+
/// \brief Retrieve a vector json.
|
|
5163
|
+
/// \param[in] uuid The universally unique identifier.
|
|
5164
|
+
/// \retval !="" The json.
|
|
5165
|
+
/// \retval "" \ERROR_HAS_OCCURRED
|
|
5166
|
+
std::string VectorRetrieveJson(const char *uuid);
|
|
5146
5167
|
/// \brief Retrieve a vector json.
|
|
5147
|
-
/// \note This method is not thread safe. The string returned will be overwritten on subsequent calls.
|
|
5148
5168
|
/// \param[in] id The identifier.
|
|
5149
5169
|
/// \param[out] blob The blob.
|
|
5150
5170
|
/// \param[in] blobSize The blob size.
|
|
5151
5171
|
/// \param[in] vectorBlobOffset The vector blob offset.
|
|
5152
5172
|
/// \param[in] vectorBlobLength The vector blob length. If vector blob length is 0, then the entire vector blob will be retrieved beginning at vector blob offset.
|
|
5153
|
-
/// \retval
|
|
5154
|
-
/// \retval
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
/// \
|
|
5158
|
-
/// \note \METHOD_ONLY_CPP
|
|
5159
|
-
/// \param[in] id The identifier.
|
|
5160
|
-
/// \param[out] json The json.
|
|
5161
|
-
/// \param[in] jsonSize The json size.
|
|
5173
|
+
/// \retval !="" The json.
|
|
5174
|
+
/// \retval "" \ERROR_HAS_OCCURRED
|
|
5175
|
+
std::string VectorRetrieveJson(int id, char *blob, int blobSize, int vectorBlobOffset = 0, int vectorBlobLength = 0);
|
|
5176
|
+
/// \brief Retrieve a vector json.
|
|
5177
|
+
/// \param[in] uuid The universally unique identifier.
|
|
5162
5178
|
/// \param[out] blob The blob.
|
|
5163
5179
|
/// \param[in] blobSize The blob size.
|
|
5164
5180
|
/// \param[in] vectorBlobOffset The vector blob offset.
|
|
5165
5181
|
/// \param[in] vectorBlobLength The vector blob length. If vector blob length is 0, then the entire vector blob will be retrieved beginning at vector blob offset.
|
|
5166
|
-
/// \
|
|
5167
|
-
///
|
|
5168
|
-
|
|
5169
|
-
/// \retval "!= Btrieve::STATUS_CODE_NO_ERROR" \ERROR_HAS_OCCURRED
|
|
5170
|
-
/// \see Btrieve::StatusCodeToString
|
|
5171
|
-
Btrieve::StatusCode VectorRetrieve(int id, char *json = NULL, int jsonSize = 0, char *blob = NULL, int blobSize = 0, int vectorBlobOffset = 0, int vectorBlobLength = 0);
|
|
5172
|
-
#endif
|
|
5182
|
+
/// \retval !="" The json.
|
|
5183
|
+
/// \retval "" \ERROR_HAS_OCCURRED
|
|
5184
|
+
std::string VectorRetrieveJson(const char *uuid, char *blob, int blobSize, int vectorBlobOffset = 0, int vectorBlobLength = 0);
|
|
5173
5185
|
/// \brief Retrieve a vector entity tag.
|
|
5174
5186
|
/// \param[in] id The identifier.
|
|
5175
5187
|
/// \retval ">= 0" The vector entity tag.
|
|
@@ -5275,12 +5287,16 @@ public:
|
|
|
5275
5287
|
/// "_sortOrder" : "descending" |
|
|
5276
5288
|
/// "_updateTime" : <number> |
|
|
5277
5289
|
/// "_updateTime" : { <time_operator> : <number> }
|
|
5290
|
+
/// "_uuid" : <string> |
|
|
5291
|
+
/// "_uuid" : { <uuid_operator> : <string> } |
|
|
5278
5292
|
///
|
|
5279
|
-
/// <sort_field> := "_blobLength" | "_createTime" | "_id" | "_jsonLength" | "_label" | "_updateTime"
|
|
5293
|
+
/// <sort_field> := "_blobLength" | "_createTime" | "_id" | "_jsonLength" | "_label" | "_updateTime" | "_uuid"
|
|
5280
5294
|
///
|
|
5281
5295
|
/// <time_operator> ::= "$eq" | "$gt" | "$gte" | "$lt" | "$lte"
|
|
5282
5296
|
///
|
|
5283
5297
|
/// <string_operator> ::= "$eq" | "$gt" | "$gte" | "$like" | "$lt" | "$lte" | "$ne" | "$notlike"
|
|
5298
|
+
///
|
|
5299
|
+
/// <uuid_operator> ::= "$eq" | "$gt" | "$gte" | "$lt" | "$lte" | "$ne"
|
|
5284
5300
|
/// \endcode
|
|
5285
5301
|
/// \par
|
|
5286
5302
|
/// In a JSON expression, if the query value is not an array and the vector value is an array then each element in the array is evaluated. If any evaluation returns true then the JSON expression returns true.
|
|
@@ -5322,41 +5338,42 @@ public:
|
|
|
5322
5338
|
Btrieve::StatusCode SetLastStatusCode(Btrieve::StatusCode statusCode);
|
|
5323
5339
|
/// \endcond
|
|
5324
5340
|
/// \brief Calculate the Euclidean distance similarity.
|
|
5325
|
-
/// \note This method is not thread safe. The string returned will be overwritten on subsequent calls.
|
|
5326
5341
|
/// \param[in] vector The vector.
|
|
5327
5342
|
/// \param[in] limit The limit.
|
|
5328
5343
|
/// \param[in] query The query. See BtrieveSpace::Query.
|
|
5329
|
-
/// \retval
|
|
5330
|
-
/// \retval
|
|
5344
|
+
/// \retval !="" The json.
|
|
5345
|
+
/// \retval "" \ERROR_HAS_OCCURRED
|
|
5331
5346
|
/// \TO_DETERMINE_STATUS_CODE{BtrieveSpace::GetLastStatusCode}
|
|
5332
|
-
|
|
5347
|
+
std::string EuclideanDistanceSimilarity(const char *vector, int limit, const char *query = NULL);
|
|
5333
5348
|
/// \brief Calculate the cosine similarity.
|
|
5334
|
-
/// \note This method is not thread safe. The string returned will be overwritten on subsequent calls.
|
|
5335
5349
|
/// \param[in] vector The vector.
|
|
5336
5350
|
/// \param[in] limit The limit.
|
|
5337
5351
|
/// \param[in] query The query. See BtrieveSpace::Query.
|
|
5338
|
-
/// \retval
|
|
5339
|
-
/// \retval
|
|
5352
|
+
/// \retval !="" The json.
|
|
5353
|
+
/// \retval "" \ERROR_HAS_OCCURRED
|
|
5340
5354
|
/// \TO_DETERMINE_STATUS_CODE{BtrieveSpace::GetLastStatusCode}
|
|
5341
|
-
|
|
5355
|
+
std::string CosineSimilarity(const char *vector, int limit, const char *query = NULL);
|
|
5342
5356
|
/// \brief Calculate the dot product similarity.
|
|
5343
|
-
/// \note This method is not thread safe. The string returned will be overwritten on subsequent calls.
|
|
5344
5357
|
/// \param[in] vector The vector.
|
|
5345
5358
|
/// \param[in] limit The limit.
|
|
5346
5359
|
/// \param[in] query The query. See BtrieveSpace::Query.
|
|
5347
|
-
/// \retval
|
|
5348
|
-
/// \retval
|
|
5360
|
+
/// \retval !="" The json.
|
|
5361
|
+
/// \retval "" \ERROR_HAS_OCCURRED
|
|
5349
5362
|
/// \TO_DETERMINE_STATUS_CODE{BtrieveSpace::GetLastStatusCode}
|
|
5350
|
-
|
|
5363
|
+
std::string DotProductSimilarity(const char *vector, int limit, const char *query = NULL);
|
|
5351
5364
|
|
|
5352
5365
|
private:
|
|
5353
5366
|
BtrieveClient *btrieveClient = NULL;
|
|
5354
5367
|
BtrieveFile *btrieveFile = NULL;
|
|
5355
5368
|
Btrieve::StatusCode lastStatusCode = Btrieve::STATUS_CODE_NO_ERROR;
|
|
5356
5369
|
int vectorLength = 0;
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5370
|
+
std::string ProcessSimilarity(const char *vector, int limit, const char *query,
|
|
5371
|
+
Btrieve::StatusCode (BtrieveBulkRetrieveAttributes::*addSimilarity)(const char *, int, int), const char *similarityKey);
|
|
5372
|
+
Btrieve::StatusCode VectorRetrieveHelper(struct btrieveVector *btrieveVector, std::string *json = NULL,
|
|
5373
|
+
char *blob = NULL, int blobSize = 0, int vectorBlobOffset = 0, int vectorBlobLength = 0);
|
|
5374
|
+
Btrieve::StatusCode VectorRetrieve(int id, std::string *json = NULL, char *blob = NULL,
|
|
5375
|
+
int blobSize = 0, int vectorBlobOffset = 0, int vectorBlobLength = 0);
|
|
5376
|
+
Btrieve::StatusCode VectorRetrieve(const char *uuid, std::string *json = NULL, char *blob = NULL, int blobSize = 0, int vectorBlobOffset = 0, int vectorBlobLength = 0);
|
|
5360
5377
|
};
|
|
5361
5378
|
|
|
5362
5379
|
/// \brief The %Btrieve vector set class.
|