pub struct HexastoreClient<T> { /* private fields */ }Expand description
Served only by S/P/O hexastore partition processes. ListNamedGraphs and AddNamedGraph are S-axis only; P/O return UNIMPLEMENTED. DomainScan and AxisHeadScan accept only permutations owned by the serving axis; foreign permutations return UNIMPLEMENTED.
Implementations§
Source§impl HexastoreClient<Channel>
impl HexastoreClient<Channel>
Source§impl<T> HexastoreClient<T>
impl<T> HexastoreClient<T>
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>( inner: T, interceptor: F, ) -> HexastoreClient<InterceptedService<T, F>>
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 insert_quads( &mut self, request: impl IntoRequest<InsertQuadsRequest>, ) -> Result<Response<InsertQuadsResponse>, Status>
Sourcepub async fn replace_quads(
&mut self,
request: impl IntoRequest<ReplaceQuadsRequest>,
) -> Result<Response<ReplaceQuadsResponse>, Status>
pub async fn replace_quads( &mut self, request: impl IntoRequest<ReplaceQuadsRequest>, ) -> Result<Response<ReplaceQuadsResponse>, Status>
Atomic object-term replace (upgrade migration; see ReplaceQuadsRequest). Served by S, P, and O partitions alike.
Sourcepub async fn rebuild_geo_index(
&mut self,
request: impl IntoRequest<RebuildGeoIndexRequest>,
) -> Result<Response<RebuildGeoIndexResponse>, Status>
pub async fn rebuild_geo_index( &mut self, request: impl IntoRequest<RebuildGeoIndexRequest>, ) -> Result<Response<RebuildGeoIndexResponse>, Status>
O-axis geo index rebuild lease + wipe (non-O returns UNIMPLEMENTED).
Sourcepub async fn finish_geo_index_rebuild(
&mut self,
request: impl IntoRequest<FinishGeoIndexRebuildRequest>,
) -> Result<Response<FinishGeoIndexRebuildResponse>, Status>
pub async fn finish_geo_index_rebuild( &mut self, request: impl IntoRequest<FinishGeoIndexRebuildRequest>, ) -> Result<Response<FinishGeoIndexRebuildResponse>, Status>
Stamp the rebuild epoch and release the lease (O axis only).
Sourcepub async fn renew_geo_rebuild_lease(
&mut self,
request: impl IntoRequest<RenewGeoRebuildLeaseRequest>,
) -> Result<Response<RenewGeoRebuildLeaseResponse>, Status>
pub async fn renew_geo_rebuild_lease( &mut self, request: impl IntoRequest<RenewGeoRebuildLeaseRequest>, ) -> Result<Response<RenewGeoRebuildLeaseResponse>, Status>
Driver keepalive for the geo rebuild lease (O axis only).
pub async fn scan_pattern( &mut self, request: impl IntoRequest<ScanPatternRequest>, ) -> Result<Response<ScanPatternResponse>, Status>
Sourcepub async fn scan_pattern_stream(
&mut self,
request: impl IntoRequest<ScanPatternRequest>,
) -> Result<Response<Streaming<ScanPatternResponse>>, Status>
pub async fn scan_pattern_stream( &mut self, request: impl IntoRequest<ScanPatternRequest>, ) -> Result<Response<Streaming<ScanPatternResponse>>, Status>
Storage-driven variant of ScanPattern for the eager drain (drain-to-EOF) fetches
whose full result set can exceed one gRPC message. The partition keeps
streaming ScanPatternResponse batches until the prefix is exhausted (or
limit rows have been emitted); each response is one batch. Same request
semantics as ScanPattern: start_after positions the first page, and
every page is read at the same MVCC snapshot. Compute calls this only
when it cannot prove the response fits in one unary message.
pub async fn count_pattern( &mut self, request: impl IntoRequest<ScanPatternRequest>, ) -> Result<Response<CountPatternResponse>, Status>
pub async fn domain_scan( &mut self, request: impl IntoRequest<DomainScanRequest>, ) -> Result<Response<DomainScanResponse>, Status>
pub async fn domain_scan_counts( &mut self, request: impl IntoRequest<DomainScanCountRequest>, ) -> Result<Response<DomainScanCountResponse>, Status>
pub async fn axis_head_scan( &mut self, request: impl IntoRequest<AxisHeadScanRequest>, ) -> Result<Response<AxisHeadScanResponse>, Status>
pub async fn axis_head_scan_counts( &mut self, request: impl IntoRequest<AxisHeadScanCountsRequest>, ) -> Result<Response<AxisHeadScanCountsResponse>, Status>
Sourcepub async fn axis_head_max_commit_ts(
&mut self,
request: impl IntoRequest<AxisHeadMaxCommitTsRequest>,
) -> Result<Response<AxisHeadMaxCommitTsResponse>, Status>
pub async fn axis_head_max_commit_ts( &mut self, request: impl IntoRequest<AxisHeadMaxCommitTsRequest>, ) -> Result<Response<AxisHeadMaxCommitTsResponse>, Status>
Max commit_ts under head-term byte prefixes (geo upgrade stage 1).
pub async fn flush_memtables( &mut self, request: impl IntoRequest<FlushMemtablesRequest>, ) -> Result<Response<FlushMemtablesResponse>, Status>
pub async fn compact_range( &mut self, request: impl IntoRequest<CompactRangeRequest>, ) -> Result<Response<CompactRangeResponse>, Status>
pub async fn get_stats_profile( &mut self, request: impl IntoRequest<GetStatsProfileRequest>, ) -> Result<Response<GetStatsProfileResponse>, Status>
pub async fn get_geo_histogram( &mut self, request: impl IntoRequest<GetGeoHistogramRequest>, ) -> Result<Response<GetGeoHistogramResponse>, Status>
pub async fn get_temporal_histogram( &mut self, request: impl IntoRequest<GetTemporalHistogramRequest>, ) -> Result<Response<GetTemporalHistogramResponse>, Status>
pub async fn get_text_seed_sketch( &mut self, request: impl IntoRequest<GetTextSeedSketchRequest>, ) -> Result<Response<GetTextSeedSketchResponse>, Status>
pub async fn list_named_graphs( &mut self, request: impl IntoRequest<ListNamedGraphsRequest>, ) -> Result<Response<ListNamedGraphsResponse>, Status>
pub async fn add_named_graph( &mut self, request: impl IntoRequest<AddNamedGraphRequest>, ) -> Result<Response<AddNamedGraphResponse>, Status>
Sourcepub async fn put_geo_index(
&mut self,
request: impl IntoRequest<PutGeoIndexRequest>,
) -> Result<Response<PutGeoIndexResponse>, Status>
pub async fn put_geo_index( &mut self, request: impl IntoRequest<PutGeoIndexRequest>, ) -> Result<Response<PutGeoIndexResponse>, Status>
O-axis geometry index (GeoSPARQL). Non-O partitions return UNIMPLEMENTED. Apply-only: the partition persists postings verbatim and answers GeoCandidateScan with skip-seek iteration + per-stream DISTINCT; it never computes S2 cells and never touches blobs.
Sourcepub async fn delete_geo_term(
&mut self,
request: impl IntoRequest<DeleteGeoTermRequest>,
) -> Result<Response<DeleteGeoTermResponse>, Status>
pub async fn delete_geo_term( &mut self, request: impl IntoRequest<DeleteGeoTermRequest>, ) -> Result<Response<DeleteGeoTermResponse>, Status>
Wipe every posting of one encoded geo term (rebuild support).
Sourcepub async fn geo_candidate_scan(
&mut self,
request: impl IntoRequest<GeoCandidateScanRequest>,
) -> Result<Response<Streaming<GeoCandidateScanResponse>>, Status>
pub async fn geo_candidate_scan( &mut self, request: impl IntoRequest<GeoCandidateScanRequest>, ) -> Result<Response<Streaming<GeoCandidateScanResponse>>, Status>
Streaming candidate drain for one merged cell-interval list. One RPC drains the full unique candidate set (see GeoCandidateScanRequest).
Sourcepub async fn put_temporal_index(
&mut self,
request: impl IntoRequest<PutTemporalIndexRequest>,
) -> Result<Response<PutTemporalIndexResponse>, Status>
pub async fn put_temporal_index( &mut self, request: impl IntoRequest<PutTemporalIndexRequest>, ) -> Result<Response<PutTemporalIndexResponse>, Status>
O-axis temporal index (temporal plugin). Non-O partitions return UNIMPLEMENTED. Apply-only: the partition persists postings verbatim, answers TemporalCandidateScan with skip-seek iteration + per-stream DISTINCT + the exact-interval reject; it never derives dyadic keys.
Sourcepub async fn temporal_candidate_scan(
&mut self,
request: impl IntoRequest<TemporalCandidateScanRequest>,
) -> Result<Response<Streaming<TemporalCandidateScanResponse>>, Status>
pub async fn temporal_candidate_scan( &mut self, request: impl IntoRequest<TemporalCandidateScanRequest>, ) -> Result<Response<Streaming<TemporalCandidateScanResponse>>, Status>
Streaming candidate drain for one merged key-interval list. One RPC drains the full unique candidate set (see TemporalCandidateScanRequest).
Sourcepub async fn rebuild_temporal_index(
&mut self,
request: impl IntoRequest<RebuildTemporalIndexRequest>,
) -> Result<Response<RebuildTemporalIndexResponse>, Status>
pub async fn rebuild_temporal_index( &mut self, request: impl IntoRequest<RebuildTemporalIndexRequest>, ) -> Result<Response<RebuildTemporalIndexResponse>, Status>
Rebuild the temporal index from the hexastore under the partition’s in-process lock (see RebuildTemporalIndexRequest). O axis only.
Sourcepub async fn put_text_index(
&mut self,
request: impl IntoRequest<PutTextIndexRequest>,
) -> Result<Response<PutTextIndexResponse>, Status>
pub async fn put_text_index( &mut self, request: impl IntoRequest<PutTextIndexRequest>, ) -> Result<Response<PutTextIndexResponse>, Status>
O-axis text index (text plugin). Non-O partitions return UNIMPLEMENTED. The partition owns a Tantivy directory beside the hexastore: it applies documents verbatim, commits and reloads before acknowledging, and answers TextCandidateScan with a full distinct-term drain.
Sourcepub async fn text_candidate_scan(
&mut self,
request: impl IntoRequest<TextCandidateScanRequest>,
) -> Result<Response<Streaming<TextCandidateScanResponse>>, Status>
pub async fn text_candidate_scan( &mut self, request: impl IntoRequest<TextCandidateScanRequest>, ) -> Result<Response<Streaming<TextCandidateScanResponse>>, Status>
Streaming candidate drain for one search mode (see TextCandidateScanRequest).
Sourcepub async fn text_subject_scan(
&mut self,
request: impl IntoRequest<TextSubjectScanRequest>,
) -> Result<Response<Streaming<TextSubjectScanResponse>>, Status>
pub async fn text_subject_scan( &mut self, request: impl IntoRequest<TextSubjectScanRequest>, ) -> Result<Response<Streaming<TextSubjectScanResponse>>, Status>
Streaming subject resolve for the Jena subject form: runs the text search, walks OPSG for each matched literal under the request’s predicates, and emits distinct (subject, graph) rows. O axis only.
Sourcepub async fn rebuild_text_index(
&mut self,
request: impl IntoRequest<RebuildTextIndexRequest>,
) -> Result<Response<RebuildTextIndexResponse>, Status>
pub async fn rebuild_text_index( &mut self, request: impl IntoRequest<RebuildTextIndexRequest>, ) -> Result<Response<RebuildTextIndexResponse>, Status>
Open-or-create the text index with an explicit config, optionally wipe, and take the rebuild lease (see RebuildTextIndexRequest). O axis only.
Sourcepub async fn renew_text_rebuild_lease(
&mut self,
request: impl IntoRequest<RenewTextRebuildLeaseRequest>,
) -> Result<Response<RenewTextRebuildLeaseResponse>, Status>
pub async fn renew_text_rebuild_lease( &mut self, request: impl IntoRequest<RenewTextRebuildLeaseRequest>, ) -> Result<Response<RenewTextRebuildLeaseResponse>, Status>
Driver keepalive for the text rebuild lease (O axis only).
Sourcepub async fn finish_text_index_rebuild(
&mut self,
request: impl IntoRequest<FinishTextIndexRebuildRequest>,
) -> Result<Response<FinishTextIndexRebuildResponse>, Status>
pub async fn finish_text_index_rebuild( &mut self, request: impl IntoRequest<FinishTextIndexRebuildRequest>, ) -> Result<Response<FinishTextIndexRebuildResponse>, Status>
Stamp the rebuild epoch and release the lease (O axis only).
pub async fn health( &mut self, request: impl IntoRequest<HealthRequest>, ) -> Result<Response<HealthResponse>, Status>
pub async fn describe( &mut self, request: impl IntoRequest<HexastoreDescribeRequest>, ) -> Result<Response<HexastoreDescribeResponse>, Status>
Trait Implementations§
Source§impl<T: Clone> Clone for HexastoreClient<T>
impl<T: Clone> Clone for HexastoreClient<T>
Source§fn clone(&self) -> HexastoreClient<T>
fn clone(&self) -> HexastoreClient<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 HexastoreClient<T>
impl<T> RefUnwindSafe for HexastoreClient<T>where
T: RefUnwindSafe,
impl<T> Send for HexastoreClient<T>where
T: Send,
impl<T> Sync for HexastoreClient<T>where
T: Sync,
impl<T> Unpin for HexastoreClient<T>where
T: Unpin,
impl<T> UnsafeUnpin for HexastoreClient<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for HexastoreClient<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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].