pub trait FrontendService:
    Send
    + Sync
    + 'static {
    type WriteChunksStream: Stream<Item = Result<WriteChunksResponse, Status>> + Send + 'static;
    type ScanPartitionTableStream: Stream<Item = Result<ScanPartitionTableResponse, Status>> + Send + 'static;
    type SearchDatasetStream: Stream<Item = Result<SearchDatasetResponse, Status>> + Send + 'static;
    type QueryDatasetStream: Stream<Item = Result<QueryDatasetResponse, Status>> + Send + 'static;
    type GetChunksStream: Stream<Item = Result<GetChunksResponse, Status>> + Send + 'static;
    type ScanTableStream: Stream<Item = Result<ScanTableResponse, Status>> + Send + 'static;
    type QueryTasksOnCompletionStream: Stream<Item = Result<QueryTasksOnCompletionResponse, Status>> + Send + 'static;

Show 20 methods // Required methods fn find_entries<'life0, 'async_trait>( &'life0 self, request: Request<FindEntriesRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<FindEntriesResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn delete_entry<'life0, 'async_trait>( &'life0 self, request: Request<DeleteEntryRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<DeleteEntryResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn create_dataset_entry<'life0, 'async_trait>( &'life0 self, request: Request<CreateDatasetEntryRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<CreateDatasetEntryResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn read_dataset_entry<'life0, 'async_trait>( &'life0 self, request: Request<ReadDatasetEntryRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ReadDatasetEntryResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn read_table_entry<'life0, 'async_trait>( &'life0 self, request: Request<ReadTableEntryRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ReadTableEntryResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn register_with_dataset<'life0, 'async_trait>( &'life0 self, request: Request<RegisterWithDatasetRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<RegisterWithDatasetResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn write_chunks<'life0, 'async_trait>( &'life0 self, request: Request<Streaming<WriteChunksRequest>>, ) -> Pin<Box<dyn Future<Output = Result<Response<Self::WriteChunksStream>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_partition_table_schema<'life0, 'async_trait>( &'life0 self, request: Request<GetPartitionTableSchemaRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetPartitionTableSchemaResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn scan_partition_table<'life0, 'async_trait>( &'life0 self, request: Request<ScanPartitionTableRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Self::ScanPartitionTableStream>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_dataset_schema<'life0, 'async_trait>( &'life0 self, request: Request<GetDatasetSchemaRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetDatasetSchemaResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn create_index<'life0, 'async_trait>( &'life0 self, request: Request<CreateIndexRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<CreateIndexResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn re_index<'life0, 'async_trait>( &'life0 self, request: Request<ReIndexRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ReIndexResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn search_dataset<'life0, 'async_trait>( &'life0 self, request: Request<SearchDatasetRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Self::SearchDatasetStream>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn query_dataset<'life0, 'async_trait>( &'life0 self, request: Request<QueryDatasetRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Self::QueryDatasetStream>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_chunks<'life0, 'async_trait>( &'life0 self, request: Request<GetChunksRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Self::GetChunksStream>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_table_schema<'life0, 'async_trait>( &'life0 self, request: Request<GetTableSchemaRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetTableSchemaResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn scan_table<'life0, 'async_trait>( &'life0 self, request: Request<ScanTableRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Self::ScanTableStream>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn query_tasks<'life0, 'async_trait>( &'life0 self, request: Request<QueryTasksRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryTasksResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn fetch_task_output<'life0, 'async_trait>( &'life0 self, request: Request<FetchTaskOutputRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<FetchTaskOutputResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn query_tasks_on_completion<'life0, 'async_trait>( &'life0 self, request: Request<QueryTasksOnCompletionRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Self::QueryTasksOnCompletionStream>, 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 FrontendServiceServer.

Required Associated Types§

Source

type WriteChunksStream: Stream<Item = Result<WriteChunksResponse, Status>> + Send + 'static

Server streaming response type for the WriteChunks method.

Source

type ScanPartitionTableStream: Stream<Item = Result<ScanPartitionTableResponse, Status>> + Send + 'static

Server streaming response type for the ScanPartitionTable method.

Source

type SearchDatasetStream: Stream<Item = Result<SearchDatasetResponse, Status>> + Send + 'static

Server streaming response type for the SearchDataset method.

Source

type QueryDatasetStream: Stream<Item = Result<QueryDatasetResponse, Status>> + Send + 'static

Server streaming response type for the QueryDataset method.

Source

type GetChunksStream: Stream<Item = Result<GetChunksResponse, Status>> + Send + 'static

Server streaming response type for the GetChunks method.

Source

type ScanTableStream: Stream<Item = Result<ScanTableResponse, Status>> + Send + 'static

Server streaming response type for the ScanTable method.

Source

type QueryTasksOnCompletionStream: Stream<Item = Result<QueryTasksOnCompletionResponse, Status>> + Send + 'static

Server streaming response type for the QueryTasksOnCompletion method.

Required Methods§

Source

fn find_entries<'life0, 'async_trait>( &'life0 self, request: Request<FindEntriesRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<FindEntriesResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn delete_entry<'life0, 'async_trait>( &'life0 self, request: Request<DeleteEntryRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<DeleteEntryResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn create_dataset_entry<'life0, 'async_trait>( &'life0 self, request: Request<CreateDatasetEntryRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<CreateDatasetEntryResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn read_dataset_entry<'life0, 'async_trait>( &'life0 self, request: Request<ReadDatasetEntryRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ReadDatasetEntryResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn read_table_entry<'life0, 'async_trait>( &'life0 self, request: Request<ReadTableEntryRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ReadTableEntryResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn register_with_dataset<'life0, 'async_trait>( &'life0 self, request: Request<RegisterWithDatasetRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<RegisterWithDatasetResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Register new partitions with the Dataset

Source

fn write_chunks<'life0, 'async_trait>( &'life0 self, request: Request<Streaming<WriteChunksRequest>>, ) -> Pin<Box<dyn Future<Output = Result<Response<Self::WriteChunksStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Unimplemented.

Source

fn get_partition_table_schema<'life0, 'async_trait>( &'life0 self, request: Request<GetPartitionTableSchemaRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetPartitionTableSchemaResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns the schema of the partition table (i.e. the dataset manifest) itself, not the underlying dataset.

  • To inspect the data of the partition table, use ScanPartitionTable.
  • To retrieve the schema of the underlying dataset, use GetDatasetSchema instead.
Source

fn scan_partition_table<'life0, 'async_trait>( &'life0 self, request: Request<ScanPartitionTableRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Self::ScanPartitionTableStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Inspect the contents of the partition table (i.e. the dataset manifest).

The returned data will follow the schema specified by GetPartitionTableSchema.

Source

fn get_dataset_schema<'life0, 'async_trait>( &'life0 self, request: Request<GetDatasetSchemaRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetDatasetSchemaResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns the schema of the dataset.

This is the union of all the schemas from all the underlying partitions. It will contain all the indexes, entities and components present in the dataset.

Source

fn create_index<'life0, 'async_trait>( &'life0 self, request: Request<CreateIndexRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<CreateIndexResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates a custom index for a specific column (vector search, full-text search, etc).

Source

fn re_index<'life0, 'async_trait>( &'life0 self, request: Request<ReIndexRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ReIndexResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Recreate an index with the same configuration but (potentially) new data.

Source

fn search_dataset<'life0, 'async_trait>( &'life0 self, request: Request<SearchDatasetRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Self::SearchDatasetStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Search a previously created index.

Source

fn query_dataset<'life0, 'async_trait>( &'life0 self, request: Request<QueryDatasetRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Self::QueryDatasetStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Perform Rerun-native queries on a dataset, returning the matching chunk IDs.

These Rerun-native queries include:

  • Filtering by specific partition and chunk IDs.
  • Latest-at, range and dataframe queries.
  • Arbitrary Lance filters.

To fetch the actual chunks themselves, see GetChunks.

Passing chunk IDs to this method effectively acts as a IF_EXIST filter.

Source

fn get_chunks<'life0, 'async_trait>( &'life0 self, request: Request<GetChunksRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Self::GetChunksStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Perform Rerun-native queries on a dataset, returning the underlying chunks.

These Rerun-native queries include:

  • Filtering by specific partition and chunk IDs.
  • Latest-at, range and dataframe queries.
  • Arbitrary Lance filters.

To fetch only the actual chunk IDs rather than the chunks themselves, see QueryDataset.

Source

fn get_table_schema<'life0, 'async_trait>( &'life0 self, request: Request<GetTableSchemaRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetTableSchemaResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn scan_table<'life0, 'async_trait>( &'life0 self, request: Request<ScanTableRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Self::ScanTableStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn query_tasks<'life0, 'async_trait>( &'life0 self, request: Request<QueryTasksRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryTasksResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

— Tasks service — Query the status of submitted tasks

Source

fn fetch_task_output<'life0, 'async_trait>( &'life0 self, request: Request<FetchTaskOutputRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<FetchTaskOutputResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Fetch the output of a completed task

Source

fn query_tasks_on_completion<'life0, 'async_trait>( &'life0 self, request: Request<QueryTasksOnCompletionRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Self::QueryTasksOnCompletionStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Query the status of submitted tasks as soon as they are no longer pending

Implementors§