Trait Points

Source
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§

Source

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.

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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.

Source

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.

Source

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

Source

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,

Count points in collection with given filtering conditions

Implementors§