pub struct FrontendServiceClient<T> {
inner: Grpc<T>,
}
Expand description
Redap’s public API.
Fields§
§inner: Grpc<T>
Implementations§
Source§impl<T> FrontendServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> FrontendServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> FrontendServiceClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
Sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
Sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
Sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
Sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
pub async fn find_entries( &mut self, request: impl IntoRequest<FindEntriesRequest>, ) -> Result<Response<FindEntriesResponse>, Status>
pub async fn delete_entry( &mut self, request: impl IntoRequest<DeleteEntryRequest>, ) -> Result<Response<DeleteEntryResponse>, Status>
pub async fn create_dataset_entry( &mut self, request: impl IntoRequest<CreateDatasetEntryRequest>, ) -> Result<Response<CreateDatasetEntryResponse>, Status>
pub async fn read_dataset_entry( &mut self, request: impl IntoRequest<ReadDatasetEntryRequest>, ) -> Result<Response<ReadDatasetEntryResponse>, Status>
pub async fn read_table_entry( &mut self, request: impl IntoRequest<ReadTableEntryRequest>, ) -> Result<Response<ReadTableEntryResponse>, Status>
Sourcepub async fn register_with_dataset(
&mut self,
request: impl IntoRequest<RegisterWithDatasetRequest>,
) -> Result<Response<RegisterWithDatasetResponse>, Status>
pub async fn register_with_dataset( &mut self, request: impl IntoRequest<RegisterWithDatasetRequest>, ) -> Result<Response<RegisterWithDatasetResponse>, Status>
Register new partitions with the Dataset
Sourcepub async fn write_chunks(
&mut self,
request: impl IntoStreamingRequest<Message = WriteChunksRequest>,
) -> Result<Response<Streaming<WriteChunksResponse>>, Status>
pub async fn write_chunks( &mut self, request: impl IntoStreamingRequest<Message = WriteChunksRequest>, ) -> Result<Response<Streaming<WriteChunksResponse>>, Status>
Unimplemented.
Sourcepub async fn get_partition_table_schema(
&mut self,
request: impl IntoRequest<GetPartitionTableSchemaRequest>,
) -> Result<Response<GetPartitionTableSchemaResponse>, Status>
pub async fn get_partition_table_schema( &mut self, request: impl IntoRequest<GetPartitionTableSchemaRequest>, ) -> Result<Response<GetPartitionTableSchemaResponse>, Status>
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.
Sourcepub async fn scan_partition_table(
&mut self,
request: impl IntoRequest<ScanPartitionTableRequest>,
) -> Result<Response<Streaming<ScanPartitionTableResponse>>, Status>
pub async fn scan_partition_table( &mut self, request: impl IntoRequest<ScanPartitionTableRequest>, ) -> Result<Response<Streaming<ScanPartitionTableResponse>>, Status>
Inspect the contents of the partition table (i.e. the dataset manifest).
The returned data will follow the schema specified by GetPartitionTableSchema
.
Sourcepub async fn get_dataset_schema(
&mut self,
request: impl IntoRequest<GetDatasetSchemaRequest>,
) -> Result<Response<GetDatasetSchemaResponse>, Status>
pub async fn get_dataset_schema( &mut self, request: impl IntoRequest<GetDatasetSchemaRequest>, ) -> Result<Response<GetDatasetSchemaResponse>, Status>
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.
Sourcepub async fn create_index(
&mut self,
request: impl IntoRequest<CreateIndexRequest>,
) -> Result<Response<CreateIndexResponse>, Status>
pub async fn create_index( &mut self, request: impl IntoRequest<CreateIndexRequest>, ) -> Result<Response<CreateIndexResponse>, Status>
Creates a custom index for a specific column (vector search, full-text search, etc).
Sourcepub async fn re_index(
&mut self,
request: impl IntoRequest<ReIndexRequest>,
) -> Result<Response<ReIndexResponse>, Status>
pub async fn re_index( &mut self, request: impl IntoRequest<ReIndexRequest>, ) -> Result<Response<ReIndexResponse>, Status>
Recreate an index with the same configuration but (potentially) new data.
Sourcepub async fn search_dataset(
&mut self,
request: impl IntoRequest<SearchDatasetRequest>,
) -> Result<Response<Streaming<SearchDatasetResponse>>, Status>
pub async fn search_dataset( &mut self, request: impl IntoRequest<SearchDatasetRequest>, ) -> Result<Response<Streaming<SearchDatasetResponse>>, Status>
Search a previously created index.
Sourcepub async fn query_dataset(
&mut self,
request: impl IntoRequest<QueryDatasetRequest>,
) -> Result<Response<Streaming<QueryDatasetResponse>>, Status>
pub async fn query_dataset( &mut self, request: impl IntoRequest<QueryDatasetRequest>, ) -> Result<Response<Streaming<QueryDatasetResponse>>, Status>
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.
Sourcepub async fn get_chunks(
&mut self,
request: impl IntoRequest<GetChunksRequest>,
) -> Result<Response<Streaming<GetChunksResponse>>, Status>
pub async fn get_chunks( &mut self, request: impl IntoRequest<GetChunksRequest>, ) -> Result<Response<Streaming<GetChunksResponse>>, Status>
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
.
pub async fn get_table_schema( &mut self, request: impl IntoRequest<GetTableSchemaRequest>, ) -> Result<Response<GetTableSchemaResponse>, Status>
pub async fn scan_table( &mut self, request: impl IntoRequest<ScanTableRequest>, ) -> Result<Response<Streaming<ScanTableResponse>>, Status>
Sourcepub async fn query_tasks(
&mut self,
request: impl IntoRequest<QueryTasksRequest>,
) -> Result<Response<QueryTasksResponse>, Status>
pub async fn query_tasks( &mut self, request: impl IntoRequest<QueryTasksRequest>, ) -> Result<Response<QueryTasksResponse>, Status>
— Tasks service — Query the status of submitted tasks
Sourcepub async fn fetch_task_output(
&mut self,
request: impl IntoRequest<FetchTaskOutputRequest>,
) -> Result<Response<FetchTaskOutputResponse>, Status>
pub async fn fetch_task_output( &mut self, request: impl IntoRequest<FetchTaskOutputRequest>, ) -> Result<Response<FetchTaskOutputResponse>, Status>
Fetch the output of a completed task
Sourcepub async fn query_tasks_on_completion(
&mut self,
request: impl IntoRequest<QueryTasksOnCompletionRequest>,
) -> Result<Response<Streaming<QueryTasksOnCompletionResponse>>, Status>
pub async fn query_tasks_on_completion( &mut self, request: impl IntoRequest<QueryTasksOnCompletionRequest>, ) -> Result<Response<Streaming<QueryTasksOnCompletionResponse>>, Status>
Query the status of submitted tasks as soon as they are no longer pending
Trait Implementations§
Source§impl<T: Clone> Clone for FrontendServiceClient<T>
impl<T: Clone> Clone for FrontendServiceClient<T>
Source§fn clone(&self) -> FrontendServiceClient<T>
fn clone(&self) -> FrontendServiceClient<T>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<T> !Freeze for FrontendServiceClient<T>
impl<T> RefUnwindSafe for FrontendServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for FrontendServiceClient<T>where
T: Send,
impl<T> Sync for FrontendServiceClient<T>where
T: Sync,
impl<T> Unpin for FrontendServiceClient<T>where
T: Unpin,
impl<T> UnwindSafe for FrontendServiceClient<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request