Skip to main content

HexastoreGeo

Trait HexastoreGeo 

Source
pub trait HexastoreGeo: Send + Sync {
Show 15 methods // Provided methods fn put_geo_index( &self, puts: &[GeoIndexPut], ) -> impl Future<Output = Result<u64, Status>> + Send { ... } fn delete_geo_term( &self, term: &[u8], ) -> impl Future<Output = Result<u64, Status>> + Send { ... } fn geo_candidate_scan( &self, intervals: &[GeoCellInterval], snapshot: SnapshotId, query_envelope: Option<GeoEnvelope>, limit: u64, ) -> impl Future<Output = Result<TermPageStream, Status>> + Send { ... } fn put_temporal_index( &self, puts: &[TemporalIndexPut], ) -> impl Future<Output = Result<u64, Status>> + Send { ... } fn temporal_candidate_scan( &self, intervals: &[TemporalCellInterval], snapshot: SnapshotId, predicate: TemporalQueryPredicate, limit: u64, ) -> impl Future<Output = Result<TermPageStream, Status>> + Send { ... } fn rebuild_geo_index( &self, ) -> impl Future<Output = Result<(bool, bool, u64), Status>> + Send { ... } fn renew_geo_rebuild_lease( &self, ) -> impl Future<Output = Result<(), Status>> + Send { ... } fn finish_geo_index_rebuild( &self, ) -> impl Future<Output = Result<u64, Status>> + Send { ... } fn rebuild_temporal_index( &self, config: DyadicCovererConfig, ) -> impl Future<Output = Result<(bool, bool), Status>> + Send { ... } fn put_text_index( &self, docs: &[TextIndexDoc], ) -> impl Future<Output = Result<u64, Status>> + Send { ... } fn text_candidate_scan( &self, request: &TextSearchRequest, snapshot: SnapshotId, ) -> impl Future<Output = Result<TermPageStream, Status>> + Send { ... } fn text_subject_scan( &self, request: &TextSubjectRequest, snapshot: SnapshotId, ) -> impl Future<Output = Result<SubjectRowStream, Status>> + Send { ... } fn rebuild_text_index( &self, analyzer: &str, seed_chars: u32, fingerprint: &str, wipe: bool, ) -> impl Future<Output = Result<(bool, bool, u64), Status>> + Send { ... } fn renew_text_rebuild_lease( &self, lease_token: u64, ) -> impl Future<Output = Result<(), Status>> + Send { ... } fn finish_text_index_rebuild( &self, lease_token: u64, stamp: bool, ) -> impl Future<Output = Result<u64, Status>> + Send { ... }
}
Expand description

O-axis geometry-index client (GeoSPARQL plugin path).

Apply-only writes + one streaming candidate drain. GeoCandidateScan is NEVER cursor-paged — one call drains the whole distinct candidate set.

Provided Methods§

Source

fn put_geo_index( &self, puts: &[GeoIndexPut], ) -> impl Future<Output = Result<u64, Status>> + Send

Apply geometry-index postings on the O partition.

Source

fn delete_geo_term( &self, term: &[u8], ) -> impl Future<Output = Result<u64, Status>> + Send

Delete every posting of one encoded geo term (rebuild support).

Source

fn geo_candidate_scan( &self, intervals: &[GeoCellInterval], snapshot: SnapshotId, query_envelope: Option<GeoEnvelope>, limit: u64, ) -> impl Future<Output = Result<TermPageStream, Status>> + Send

Drain the merged cell-interval candidate scan as term pages. query_envelope enables the partition-side AABB reject; limit of 0 is unlimited (and is a per-drain cap, not a cursor).

Source

fn put_temporal_index( &self, puts: &[TemporalIndexPut], ) -> impl Future<Output = Result<u64, Status>> + Send

Apply temporal-index postings on the O partition.

Source

fn temporal_candidate_scan( &self, intervals: &[TemporalCellInterval], snapshot: SnapshotId, predicate: TemporalQueryPredicate, limit: u64, ) -> impl Future<Output = Result<TermPageStream, Status>> + Send

Drain the merged key-interval candidate scan as term pages. The exact-interval predicate rejects postings partition-side; limit of 0 is unlimited (and is a per-drain cap, not a cursor).

Source

fn rebuild_geo_index( &self, ) -> impl Future<Output = Result<(bool, bool, u64), Status>> + Send

Begin the O-axis geo index rebuild: take the lease and wipe the CF. Returns (started, already_in_progress, upgrade_ts) — the upgrade ts is the partition’s max commit_ts at lease take and is the ts every ReplaceQuads row of this rebuild must carry; the CALLING compute then drives the walk and finishes (unlike temporal, the walk is not partition-owned).

Source

fn renew_geo_rebuild_lease( &self, ) -> impl Future<Output = Result<(), Status>> + Send

Refresh the geo rebuild lease (the driver calls this per batch so a slow walk is not taken over).

Source

fn finish_geo_index_rebuild( &self, ) -> impl Future<Output = Result<u64, Status>> + Send

Finish the geo index rebuild: stamp the partition’s max-seen commit_ts as the epoch and release the lease. Returns the epoch.

Source

fn rebuild_temporal_index( &self, config: DyadicCovererConfig, ) -> impl Future<Output = Result<(bool, bool), Status>> + Send

Trigger the O-axis temporal index rebuild. Returns (started, already_in_progress) — see the proto contract; concurrent callers poll Describe for the epoch instead of blocking here.

Source

fn put_text_index( &self, docs: &[TextIndexDoc], ) -> impl Future<Output = Result<u64, Status>> + Send

Append text-index documents on the O partition (text plugin). Sent BEFORE the three axis InsertQuads calls, so a visible row never lacks its document. The partition commits and reloads its reader before acknowledging.

Source

fn text_candidate_scan( &self, request: &TextSearchRequest, snapshot: SnapshotId, ) -> impl Future<Output = Result<TermPageStream, Status>> + Send

Drain one text candidate request as term pages. One RPC drains the whole distinct candidate set; limit of 0 is unlimited (and is a per-drain guard that errors, not a cursor).

Source

fn text_subject_scan( &self, request: &TextSubjectRequest, snapshot: SnapshotId, ) -> impl Future<Output = Result<SubjectRowStream, Status>> + Send

Resolve one text search to DISTINCT subjects on the O partition.

The partition runs ONE candidate search over the request’s whole predicate set (a single OR of term filters on the stored predicate), resolves each matched literal against the OPSG index at snapshot, and streams (subject, graph) rows; the graph column is present only when the request asks for it. limit of 0 is unlimited (a guard on the emitted distinct rows that ERRORS, not a cursor). Empty predicates means no predicate restriction: the literals still come only from the text index, but each is read under any predicate.

Source

fn rebuild_text_index( &self, analyzer: &str, seed_chars: u32, fingerprint: &str, wipe: bool, ) -> impl Future<Output = Result<(bool, bool, u64), Status>> + Send

Open-or-create the text index with an explicit config, optionally wipe, and take the rebuild lease. Returns (started, already_in_progress, lease_token) — the token is the caller’s proof of lease ownership (non-zero exactly when started); every renew / finish must carry it. The calling compute drives the walk and finishes with Self::finish_text_index_rebuild.

Source

fn renew_text_rebuild_lease( &self, lease_token: u64, ) -> impl Future<Output = Result<(), Status>> + Send

Refresh the text rebuild lease (driver keepalive per batch). Rejected unless lease_token identifies the current fresh lease.

Source

fn finish_text_index_rebuild( &self, lease_token: u64, stamp: bool, ) -> impl Future<Output = Result<u64, Status>> + Send

Finish the text index rebuild: release the lease, and — when stamp — stamp the partition’s max-seen commit_ts as the epoch. stamp = false releases without stamping (the index stays untrusted). Returns the stamped epoch (0 when not stamping). Rejected unless lease_token identifies the current fresh lease.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§