public class VectorOperationsApi
extends java.lang.Object
| Constructor and Description |
|---|
VectorOperationsApi() |
VectorOperationsApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
deleteVectors(DeleteRequest deleteRequest)
Delete vectors
The `delete` operation deletes vectors, by id, from a single namespace.
|
okhttp3.Call |
deleteVectorsAsync(DeleteRequest deleteRequest,
ApiCallback<java.lang.Object> _callback)
Delete vectors (asynchronously)
The `delete` operation deletes vectors, by id, from a single namespace.
|
okhttp3.Call |
deleteVectorsCall(DeleteRequest deleteRequest,
ApiCallback _callback)
Build call for deleteVectors
|
ApiResponse<java.lang.Object> |
deleteVectorsWithHttpInfo(DeleteRequest deleteRequest)
Delete vectors
The `delete` operation deletes vectors, by id, from a single namespace.
|
IndexDescription |
describeIndexStats(DescribeIndexStatsRequest describeIndexStatsRequest)
Get index stats
The `describe_index_stats` operation returns statistics about the contents of an index, including the vector count per namespace, the number of dimensions, and the index fullness.
|
okhttp3.Call |
describeIndexStatsAsync(DescribeIndexStatsRequest describeIndexStatsRequest,
ApiCallback<IndexDescription> _callback)
Get index stats (asynchronously)
The `describe_index_stats` operation returns statistics about the contents of an index, including the vector count per namespace, the number of dimensions, and the index fullness.
|
okhttp3.Call |
describeIndexStatsCall(DescribeIndexStatsRequest describeIndexStatsRequest,
ApiCallback _callback)
Build call for describeIndexStats
|
ApiResponse<IndexDescription> |
describeIndexStatsWithHttpInfo(DescribeIndexStatsRequest describeIndexStatsRequest)
Get index stats
The `describe_index_stats` operation returns statistics about the contents of an index, including the vector count per namespace, the number of dimensions, and the index fullness.
|
FetchResponse |
fetchVectors(java.util.List<java.lang.String> ids,
java.lang.String namespace)
Fetch vectors
The `fetch` operation looks up and returns vectors, by ID, from a single namespace.
|
okhttp3.Call |
fetchVectorsAsync(java.util.List<java.lang.String> ids,
java.lang.String namespace,
ApiCallback<FetchResponse> _callback)
Fetch vectors (asynchronously)
The `fetch` operation looks up and returns vectors, by ID, from a single namespace.
|
okhttp3.Call |
fetchVectorsCall(java.util.List<java.lang.String> ids,
java.lang.String namespace,
ApiCallback _callback)
Build call for fetchVectors
|
ApiResponse<FetchResponse> |
fetchVectorsWithHttpInfo(java.util.List<java.lang.String> ids,
java.lang.String namespace)
Fetch vectors
The `fetch` operation looks up and returns vectors, by ID, from a single namespace.
|
ApiClient |
getApiClient() |
java.lang.String |
getCustomBaseUrl() |
int |
getHostIndex() |
ListResponse |
listVectors(java.lang.String prefix,
java.lang.Long limit,
java.lang.String paginationToken,
java.lang.String namespace)
List vector IDs
The `list` operation lists the IDs of vectors in a single namespace of a serverless index.
|
okhttp3.Call |
listVectorsAsync(java.lang.String prefix,
java.lang.Long limit,
java.lang.String paginationToken,
java.lang.String namespace,
ApiCallback<ListResponse> _callback)
List vector IDs (asynchronously)
The `list` operation lists the IDs of vectors in a single namespace of a serverless index.
|
okhttp3.Call |
listVectorsCall(java.lang.String prefix,
java.lang.Long limit,
java.lang.String paginationToken,
java.lang.String namespace,
ApiCallback _callback)
Build call for listVectors
|
ApiResponse<ListResponse> |
listVectorsWithHttpInfo(java.lang.String prefix,
java.lang.Long limit,
java.lang.String paginationToken,
java.lang.String namespace)
List vector IDs
The `list` operation lists the IDs of vectors in a single namespace of a serverless index.
|
QueryResponse |
queryVectors(QueryRequest queryRequest)
Query vectors
The `query` operation searches a namespace, using a query vector.
|
okhttp3.Call |
queryVectorsAsync(QueryRequest queryRequest,
ApiCallback<QueryResponse> _callback)
Query vectors (asynchronously)
The `query` operation searches a namespace, using a query vector.
|
okhttp3.Call |
queryVectorsCall(QueryRequest queryRequest,
ApiCallback _callback)
Build call for queryVectors
|
ApiResponse<QueryResponse> |
queryVectorsWithHttpInfo(QueryRequest queryRequest)
Query vectors
The `query` operation searches a namespace, using a query vector.
|
void |
setApiClient(ApiClient apiClient) |
void |
setCustomBaseUrl(java.lang.String customBaseUrl) |
void |
setHostIndex(int hostIndex) |
java.lang.Object |
updateVector(UpdateRequest updateRequest)
Update a vector
The `update` operation updates a vector in a namespace.
|
okhttp3.Call |
updateVectorAsync(UpdateRequest updateRequest,
ApiCallback<java.lang.Object> _callback)
Update a vector (asynchronously)
The `update` operation updates a vector in a namespace.
|
okhttp3.Call |
updateVectorCall(UpdateRequest updateRequest,
ApiCallback _callback)
Build call for updateVector
|
ApiResponse<java.lang.Object> |
updateVectorWithHttpInfo(UpdateRequest updateRequest)
Update a vector
The `update` operation updates a vector in a namespace.
|
UpsertResponse |
upsertVectors(UpsertRequest upsertRequest)
Upsert vectors
The `upsert` operation writes vectors into a namespace.
|
okhttp3.Call |
upsertVectorsAsync(UpsertRequest upsertRequest,
ApiCallback<UpsertResponse> _callback)
Upsert vectors (asynchronously)
The `upsert` operation writes vectors into a namespace.
|
okhttp3.Call |
upsertVectorsCall(UpsertRequest upsertRequest,
ApiCallback _callback)
Build call for upsertVectors
|
ApiResponse<UpsertResponse> |
upsertVectorsWithHttpInfo(UpsertRequest upsertRequest)
Upsert vectors
The `upsert` operation writes vectors into a namespace.
|
public VectorOperationsApi()
public VectorOperationsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public int getHostIndex()
public void setHostIndex(int hostIndex)
public java.lang.String getCustomBaseUrl()
public void setCustomBaseUrl(java.lang.String customBaseUrl)
public okhttp3.Call deleteVectorsCall(DeleteRequest deleteRequest, ApiCallback _callback) throws ApiException
deleteRequest - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | A successful response. | - |
| 400 | Bad request. The request body included invalid request parameters. | - |
| 4XX | An unexpected error response. | - |
| 5XX | An unexpected error response. | - |
public java.lang.Object deleteVectors(DeleteRequest deleteRequest) throws ApiException
deleteRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | A successful response. | - |
| 400 | Bad request. The request body included invalid request parameters. | - |
| 4XX | An unexpected error response. | - |
| 5XX | An unexpected error response. | - |
public ApiResponse<java.lang.Object> deleteVectorsWithHttpInfo(DeleteRequest deleteRequest) throws ApiException
deleteRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | A successful response. | - |
| 400 | Bad request. The request body included invalid request parameters. | - |
| 4XX | An unexpected error response. | - |
| 5XX | An unexpected error response. | - |
public okhttp3.Call deleteVectorsAsync(DeleteRequest deleteRequest, ApiCallback<java.lang.Object> _callback) throws ApiException
deleteRequest - (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | A successful response. | - |
| 400 | Bad request. The request body included invalid request parameters. | - |
| 4XX | An unexpected error response. | - |
| 5XX | An unexpected error response. | - |
public okhttp3.Call describeIndexStatsCall(DescribeIndexStatsRequest describeIndexStatsRequest, ApiCallback _callback) throws ApiException
describeIndexStatsRequest - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | A successful response. | - |
| 400 | Bad request. The request body included invalid request parameters. | - |
| 4XX | An unexpected error response. | - |
| 5XX | An unexpected error response. | - |
public IndexDescription describeIndexStats(DescribeIndexStatsRequest describeIndexStatsRequest) throws ApiException
describeIndexStatsRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | A successful response. | - |
| 400 | Bad request. The request body included invalid request parameters. | - |
| 4XX | An unexpected error response. | - |
| 5XX | An unexpected error response. | - |
public ApiResponse<IndexDescription> describeIndexStatsWithHttpInfo(DescribeIndexStatsRequest describeIndexStatsRequest) throws ApiException
describeIndexStatsRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | A successful response. | - |
| 400 | Bad request. The request body included invalid request parameters. | - |
| 4XX | An unexpected error response. | - |
| 5XX | An unexpected error response. | - |
public okhttp3.Call describeIndexStatsAsync(DescribeIndexStatsRequest describeIndexStatsRequest, ApiCallback<IndexDescription> _callback) throws ApiException
describeIndexStatsRequest - (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | A successful response. | - |
| 400 | Bad request. The request body included invalid request parameters. | - |
| 4XX | An unexpected error response. | - |
| 5XX | An unexpected error response. | - |
public okhttp3.Call fetchVectorsCall(java.util.List<java.lang.String> ids,
java.lang.String namespace,
ApiCallback _callback)
throws ApiException
ids - The vector IDs to fetch. Does not accept values containing spaces. (required)namespace - (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | A successful response. | - |
| 400 | Bad request. The request body included invalid request parameters. | - |
| 4XX | An unexpected error response. | - |
| 5XX | An unexpected error response. | - |
public FetchResponse fetchVectors(java.util.List<java.lang.String> ids, java.lang.String namespace) throws ApiException
ids - The vector IDs to fetch. Does not accept values containing spaces. (required)namespace - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | A successful response. | - |
| 400 | Bad request. The request body included invalid request parameters. | - |
| 4XX | An unexpected error response. | - |
| 5XX | An unexpected error response. | - |
public ApiResponse<FetchResponse> fetchVectorsWithHttpInfo(java.util.List<java.lang.String> ids, java.lang.String namespace) throws ApiException
ids - The vector IDs to fetch. Does not accept values containing spaces. (required)namespace - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | A successful response. | - |
| 400 | Bad request. The request body included invalid request parameters. | - |
| 4XX | An unexpected error response. | - |
| 5XX | An unexpected error response. | - |
public okhttp3.Call fetchVectorsAsync(java.util.List<java.lang.String> ids,
java.lang.String namespace,
ApiCallback<FetchResponse> _callback)
throws ApiException
ids - The vector IDs to fetch. Does not accept values containing spaces. (required)namespace - (optional)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | A successful response. | - |
| 400 | Bad request. The request body included invalid request parameters. | - |
| 4XX | An unexpected error response. | - |
| 5XX | An unexpected error response. | - |
public okhttp3.Call listVectorsCall(java.lang.String prefix,
java.lang.Long limit,
java.lang.String paginationToken,
java.lang.String namespace,
ApiCallback _callback)
throws ApiException
prefix - The vector IDs to fetch. Does not accept values containing spaces. (optional)limit - Max number of IDs to return per page. (optional)paginationToken - Pagination token to continue a previous listing operation. (optional)namespace - (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | A successful response. | - |
| 400 | Bad request. The request body included invalid request parameters. | - |
| 4XX | An unexpected error response. | - |
| 5XX | An unexpected error response. | - |
public ListResponse listVectors(java.lang.String prefix, java.lang.Long limit, java.lang.String paginationToken, java.lang.String namespace) throws ApiException
prefix - The vector IDs to fetch. Does not accept values containing spaces. (optional)limit - Max number of IDs to return per page. (optional)paginationToken - Pagination token to continue a previous listing operation. (optional)namespace - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | A successful response. | - |
| 400 | Bad request. The request body included invalid request parameters. | - |
| 4XX | An unexpected error response. | - |
| 5XX | An unexpected error response. | - |
public ApiResponse<ListResponse> listVectorsWithHttpInfo(java.lang.String prefix, java.lang.Long limit, java.lang.String paginationToken, java.lang.String namespace) throws ApiException
prefix - The vector IDs to fetch. Does not accept values containing spaces. (optional)limit - Max number of IDs to return per page. (optional)paginationToken - Pagination token to continue a previous listing operation. (optional)namespace - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | A successful response. | - |
| 400 | Bad request. The request body included invalid request parameters. | - |
| 4XX | An unexpected error response. | - |
| 5XX | An unexpected error response. | - |
public okhttp3.Call listVectorsAsync(java.lang.String prefix,
java.lang.Long limit,
java.lang.String paginationToken,
java.lang.String namespace,
ApiCallback<ListResponse> _callback)
throws ApiException
prefix - The vector IDs to fetch. Does not accept values containing spaces. (optional)limit - Max number of IDs to return per page. (optional)paginationToken - Pagination token to continue a previous listing operation. (optional)namespace - (optional)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | A successful response. | - |
| 400 | Bad request. The request body included invalid request parameters. | - |
| 4XX | An unexpected error response. | - |
| 5XX | An unexpected error response. | - |
public okhttp3.Call queryVectorsCall(QueryRequest queryRequest, ApiCallback _callback) throws ApiException
queryRequest - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | A successful response. | - |
| 400 | Bad request. The request body included invalid request parameters. | - |
| 4XX | An unexpected error response. | - |
| 5XX | An unexpected error response. | - |
public QueryResponse queryVectors(QueryRequest queryRequest) throws ApiException
queryRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | A successful response. | - |
| 400 | Bad request. The request body included invalid request parameters. | - |
| 4XX | An unexpected error response. | - |
| 5XX | An unexpected error response. | - |
public ApiResponse<QueryResponse> queryVectorsWithHttpInfo(QueryRequest queryRequest) throws ApiException
queryRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | A successful response. | - |
| 400 | Bad request. The request body included invalid request parameters. | - |
| 4XX | An unexpected error response. | - |
| 5XX | An unexpected error response. | - |
public okhttp3.Call queryVectorsAsync(QueryRequest queryRequest, ApiCallback<QueryResponse> _callback) throws ApiException
queryRequest - (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | A successful response. | - |
| 400 | Bad request. The request body included invalid request parameters. | - |
| 4XX | An unexpected error response. | - |
| 5XX | An unexpected error response. | - |
public okhttp3.Call updateVectorCall(UpdateRequest updateRequest, ApiCallback _callback) throws ApiException
updateRequest - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | A successful response. | - |
| 400 | Bad request. The request body included invalid request parameters. | - |
| 4XX | An unexpected error response. | - |
| 5XX | An unexpected error response. | - |
public java.lang.Object updateVector(UpdateRequest updateRequest) throws ApiException
updateRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | A successful response. | - |
| 400 | Bad request. The request body included invalid request parameters. | - |
| 4XX | An unexpected error response. | - |
| 5XX | An unexpected error response. | - |
public ApiResponse<java.lang.Object> updateVectorWithHttpInfo(UpdateRequest updateRequest) throws ApiException
updateRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | A successful response. | - |
| 400 | Bad request. The request body included invalid request parameters. | - |
| 4XX | An unexpected error response. | - |
| 5XX | An unexpected error response. | - |
public okhttp3.Call updateVectorAsync(UpdateRequest updateRequest, ApiCallback<java.lang.Object> _callback) throws ApiException
updateRequest - (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | A successful response. | - |
| 400 | Bad request. The request body included invalid request parameters. | - |
| 4XX | An unexpected error response. | - |
| 5XX | An unexpected error response. | - |
public okhttp3.Call upsertVectorsCall(UpsertRequest upsertRequest, ApiCallback _callback) throws ApiException
upsertRequest - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | A successful response. | - |
| 400 | Bad request. The request body included invalid request parameters. | - |
| 4XX | An unexpected error response. | - |
| 5XX | An unexpected error response. | - |
public UpsertResponse upsertVectors(UpsertRequest upsertRequest) throws ApiException
upsertRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | A successful response. | - |
| 400 | Bad request. The request body included invalid request parameters. | - |
| 4XX | An unexpected error response. | - |
| 5XX | An unexpected error response. | - |
public ApiResponse<UpsertResponse> upsertVectorsWithHttpInfo(UpsertRequest upsertRequest) throws ApiException
upsertRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | A successful response. | - |
| 400 | Bad request. The request body included invalid request parameters. | - |
| 4XX | An unexpected error response. | - |
| 5XX | An unexpected error response. | - |
public okhttp3.Call upsertVectorsAsync(UpsertRequest upsertRequest, ApiCallback<UpsertResponse> _callback) throws ApiException
upsertRequest - (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | A successful response. | - |
| 400 | Bad request. The request body included invalid request parameters. | - |
| 4XX | An unexpected error response. | - |
| 5XX | An unexpected error response. | - |