pub trait Points:
Send
+ Sync
+ 'static {
Show 19 methods
// Required methods
fn upsert<'life0, 'async_trait>(
&'life0 self,
request: Request<UpsertPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete<'life0, 'async_trait>(
&'life0 self,
request: Request<DeletePoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get<'life0, 'async_trait>(
&'life0 self,
request: Request<GetPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn update_vectors<'life0, 'async_trait>(
&'life0 self,
request: Request<UpdatePointVectors>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_vectors<'life0, 'async_trait>(
&'life0 self,
request: Request<DeletePointVectors>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn set_payload<'life0, 'async_trait>(
&'life0 self,
request: Request<SetPayloadPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn overwrite_payload<'life0, 'async_trait>(
&'life0 self,
request: Request<SetPayloadPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_payload<'life0, 'async_trait>(
&'life0 self,
request: Request<DeletePayloadPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn clear_payload<'life0, 'async_trait>(
&'life0 self,
request: Request<ClearPayloadPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_field_index<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateFieldIndexCollection>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_field_index<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteFieldIndexCollection>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn search<'life0, 'async_trait>(
&'life0 self,
request: Request<SearchPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<SearchResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn search_batch<'life0, 'async_trait>(
&'life0 self,
request: Request<SearchBatchPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<SearchBatchResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn search_groups<'life0, 'async_trait>(
&'life0 self,
request: Request<SearchPointGroups>,
) -> Pin<Box<dyn Future<Output = Result<Response<SearchGroupsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn scroll<'life0, 'async_trait>(
&'life0 self,
request: Request<ScrollPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<ScrollResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn recommend<'life0, 'async_trait>(
&'life0 self,
request: Request<RecommendPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<RecommendResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn recommend_batch<'life0, 'async_trait>(
&'life0 self,
request: Request<RecommendBatchPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<RecommendBatchResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn recommend_groups<'life0, 'async_trait>(
&'life0 self,
request: Request<RecommendPointGroups>,
) -> Pin<Box<dyn Future<Output = Result<Response<RecommendGroupsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn count<'life0, 'async_trait>(
&'life0 self,
request: Request<CountPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<CountResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Generated trait containing gRPC methods that should be implemented for use with PointsServer.
Required Methods§
Sourcefn upsert<'life0, 'async_trait>(
&'life0 self,
request: Request<UpsertPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn upsert<'life0, 'async_trait>(
&'life0 self,
request: Request<UpsertPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Perform insert + updates on points. If a point with a given ID already exists - it will be overwritten.
Sourcefn delete<'life0, 'async_trait>(
&'life0 self,
request: Request<DeletePoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete<'life0, 'async_trait>(
&'life0 self,
request: Request<DeletePoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Delete points
Sourcefn get<'life0, 'async_trait>(
&'life0 self,
request: Request<GetPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get<'life0, 'async_trait>(
&'life0 self,
request: Request<GetPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieve points
Sourcefn update_vectors<'life0, 'async_trait>(
&'life0 self,
request: Request<UpdatePointVectors>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_vectors<'life0, 'async_trait>(
&'life0 self,
request: Request<UpdatePointVectors>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Update named vectors for point
Sourcefn delete_vectors<'life0, 'async_trait>(
&'life0 self,
request: Request<DeletePointVectors>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_vectors<'life0, 'async_trait>(
&'life0 self,
request: Request<DeletePointVectors>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Delete named vectors for points
Sourcefn set_payload<'life0, 'async_trait>(
&'life0 self,
request: Request<SetPayloadPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_payload<'life0, 'async_trait>(
&'life0 self,
request: Request<SetPayloadPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Set payload for points
Sourcefn overwrite_payload<'life0, 'async_trait>(
&'life0 self,
request: Request<SetPayloadPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn overwrite_payload<'life0, 'async_trait>(
&'life0 self,
request: Request<SetPayloadPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Overwrite payload for points
Sourcefn delete_payload<'life0, 'async_trait>(
&'life0 self,
request: Request<DeletePayloadPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_payload<'life0, 'async_trait>(
&'life0 self,
request: Request<DeletePayloadPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Delete specified key payload for points
Sourcefn clear_payload<'life0, 'async_trait>(
&'life0 self,
request: Request<ClearPayloadPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn clear_payload<'life0, 'async_trait>(
&'life0 self,
request: Request<ClearPayloadPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Remove all payload for specified points
Sourcefn create_field_index<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateFieldIndexCollection>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_field_index<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateFieldIndexCollection>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create index for field in collection
Sourcefn delete_field_index<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteFieldIndexCollection>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_field_index<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteFieldIndexCollection>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Delete field index for collection
Sourcefn search<'life0, 'async_trait>(
&'life0 self,
request: Request<SearchPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<SearchResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn search<'life0, 'async_trait>(
&'life0 self,
request: Request<SearchPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<SearchResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieve closest points based on vector similarity and given filtering conditions
Sourcefn search_batch<'life0, 'async_trait>(
&'life0 self,
request: Request<SearchBatchPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<SearchBatchResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn search_batch<'life0, 'async_trait>(
&'life0 self,
request: Request<SearchBatchPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<SearchBatchResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieve closest points based on vector similarity and given filtering conditions
Sourcefn search_groups<'life0, 'async_trait>(
&'life0 self,
request: Request<SearchPointGroups>,
) -> Pin<Box<dyn Future<Output = Result<Response<SearchGroupsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn search_groups<'life0, 'async_trait>(
&'life0 self,
request: Request<SearchPointGroups>,
) -> Pin<Box<dyn Future<Output = Result<Response<SearchGroupsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieve closest points based on vector similarity and given filtering conditions, grouped by a given field
Sourcefn scroll<'life0, 'async_trait>(
&'life0 self,
request: Request<ScrollPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<ScrollResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn scroll<'life0, 'async_trait>(
&'life0 self,
request: Request<ScrollPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<ScrollResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Iterate over all or filtered points points
Sourcefn recommend<'life0, 'async_trait>(
&'life0 self,
request: Request<RecommendPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<RecommendResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn recommend<'life0, 'async_trait>(
&'life0 self,
request: Request<RecommendPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<RecommendResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Look for the points which are closer to stored positive examples and at the same time further to negative examples.
Sourcefn recommend_batch<'life0, 'async_trait>(
&'life0 self,
request: Request<RecommendBatchPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<RecommendBatchResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn recommend_batch<'life0, 'async_trait>(
&'life0 self,
request: Request<RecommendBatchPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<RecommendBatchResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Look for the points which are closer to stored positive examples and at the same time further to negative examples.
Sourcefn recommend_groups<'life0, 'async_trait>(
&'life0 self,
request: Request<RecommendPointGroups>,
) -> Pin<Box<dyn Future<Output = Result<Response<RecommendGroupsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn recommend_groups<'life0, 'async_trait>(
&'life0 self,
request: Request<RecommendPointGroups>,
) -> Pin<Box<dyn Future<Output = Result<Response<RecommendGroupsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Look for the points which are closer to stored positive examples and at the same time further to negative examples, grouped by a given field