Skip to main content

HexastoreClient

Struct HexastoreClient 

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

Source

pub async fn connect<D>(dst: D) -> Result<Self, Error>
where D: TryInto<Endpoint>, D::Error: Into<StdError>,

Attempt to create a new client by connecting to a given endpoint.

Source§

impl<T> HexastoreClient<T>
where T: GrpcService<Body>, T::Error: Into<StdError>, T::ResponseBody: Body<Data = Bytes> + Send + 'static, <T::ResponseBody as Body>::Error: Into<StdError> + Send,

Source

pub fn new(inner: T) -> Self

Source

pub fn with_origin(inner: T, origin: Uri) -> Self

Source

pub fn with_interceptor<F>( inner: T, interceptor: F, ) -> HexastoreClient<InterceptedService<T, F>>
where F: Interceptor, T::ResponseBody: Default, T: Service<Request<Body>, Response = Response<<T as GrpcService<Body>>::ResponseBody>>, <T as Service<Request<Body>>>::Error: Into<StdError> + Send + Sync,

Source

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.

Source

pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self

Enable decompressing responses.

Source

pub fn max_decoding_message_size(self, limit: usize) -> Self

Limits the maximum size of a decoded message.

Default: 4MB

Source

pub fn max_encoding_message_size(self, limit: usize) -> Self

Limits the maximum size of an encoded message.

Default: usize::MAX

Source

pub async fn insert_quads( &mut self, request: impl IntoRequest<InsertQuadsRequest>, ) -> Result<Response<InsertQuadsResponse>, Status>

Source

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.

Source

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).

Source

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).

Source

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).

Source

pub async fn scan_pattern( &mut self, request: impl IntoRequest<ScanPatternRequest>, ) -> Result<Response<ScanPatternResponse>, Status>

Source

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.

Source

pub async fn count_pattern( &mut self, request: impl IntoRequest<ScanPatternRequest>, ) -> Result<Response<CountPatternResponse>, Status>

Source

pub async fn domain_scan( &mut self, request: impl IntoRequest<DomainScanRequest>, ) -> Result<Response<DomainScanResponse>, Status>

Source

pub async fn domain_scan_counts( &mut self, request: impl IntoRequest<DomainScanCountRequest>, ) -> Result<Response<DomainScanCountResponse>, Status>

Source

pub async fn axis_head_scan( &mut self, request: impl IntoRequest<AxisHeadScanRequest>, ) -> Result<Response<AxisHeadScanResponse>, Status>

Source

pub async fn axis_head_scan_counts( &mut self, request: impl IntoRequest<AxisHeadScanCountsRequest>, ) -> Result<Response<AxisHeadScanCountsResponse>, Status>

Source

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).

Source

pub async fn flush_memtables( &mut self, request: impl IntoRequest<FlushMemtablesRequest>, ) -> Result<Response<FlushMemtablesResponse>, Status>

Source

pub async fn compact_range( &mut self, request: impl IntoRequest<CompactRangeRequest>, ) -> Result<Response<CompactRangeResponse>, Status>

Source

pub async fn get_stats_profile( &mut self, request: impl IntoRequest<GetStatsProfileRequest>, ) -> Result<Response<GetStatsProfileResponse>, Status>

Source

pub async fn get_geo_histogram( &mut self, request: impl IntoRequest<GetGeoHistogramRequest>, ) -> Result<Response<GetGeoHistogramResponse>, Status>

Source

pub async fn get_temporal_histogram( &mut self, request: impl IntoRequest<GetTemporalHistogramRequest>, ) -> Result<Response<GetTemporalHistogramResponse>, Status>

Source

pub async fn get_text_seed_sketch( &mut self, request: impl IntoRequest<GetTextSeedSketchRequest>, ) -> Result<Response<GetTextSeedSketchResponse>, Status>

Source

pub async fn list_named_graphs( &mut self, request: impl IntoRequest<ListNamedGraphsRequest>, ) -> Result<Response<ListNamedGraphsResponse>, Status>

Source

pub async fn add_named_graph( &mut self, request: impl IntoRequest<AddNamedGraphRequest>, ) -> Result<Response<AddNamedGraphResponse>, Status>

Source

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.

Source

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).

Source

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).

Source

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.

Source

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).

Source

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.

Source

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.

Source

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).

Source

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.

Source

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.

Source

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).

Source

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).

Source

pub async fn health( &mut self, request: impl IntoRequest<HealthRequest>, ) -> Result<Response<HealthResponse>, Status>

Source

pub async fn describe( &mut self, request: impl IntoRequest<HexastoreDescribeRequest>, ) -> Result<Response<HexastoreDescribeResponse>, Status>

Trait Implementations§

Source§

impl<T: Clone> Clone for HexastoreClient<T>

Source§

fn clone(&self) -> HexastoreClient<T>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Debug> Debug for HexastoreClient<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto 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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> IntoRequest<T> for T

§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
§

impl<L> LayerExt<L> for L

§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in [Layered].
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,