Skip to main content

StringRegistry

Trait StringRegistry 

Source
pub trait StringRegistry:
    Send
    + Sync
    + 'static {
    type GetBlobsStream: Stream<Item = Result<GetBlobsResponse, Status>> + Send + 'static;
    type ResolveStringsStream: Stream<Item = Result<ResolveStringsResponse, Status>> + Send + 'static;

    // Required methods
    fn register_strings<'life0, 'async_trait>(
        &'life0 self,
        request: Request<RegisterStringsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<RegisterStringsResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn put_blob_chunks<'life0, 'async_trait>(
        &'life0 self,
        request: Request<Streaming<PutBlobRequest>>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<PutBlobResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn put_blobs<'life0, 'async_trait>(
        &'life0 self,
        request: Request<PutBlobsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<PutBlobsResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_blobs<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetBlobsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::GetBlobsStream>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn resolve_strings<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ResolveStringsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::ResolveStringsStream>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn flush_memtables<'life0, 'async_trait>(
        &'life0 self,
        request: Request<FlushMemtablesRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<FlushMemtablesResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn compact_range<'life0, 'async_trait>(
        &'life0 self,
        request: Request<CompactRangeRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<CompactRangeResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn health<'life0, 'async_trait>(
        &'life0 self,
        request: Request<HealthRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<HealthResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn describe<'life0, 'async_trait>(
        &'life0 self,
        request: Request<RegistryDescribeRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<RegistryDescribeResponse>, 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 StringRegistryServer.

Required Associated Types§

Source

type GetBlobsStream: Stream<Item = Result<GetBlobsResponse, Status>> + Send + 'static

Server streaming response type for the GetBlobs method.

Source

type ResolveStringsStream: Stream<Item = Result<ResolveStringsResponse, Status>> + Send + 'static

Server streaming response type for the ResolveStrings method.

Required Methods§

Source

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

Source

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

Content-addressed blob store (GeoSPARQL geometry payloads; generic binary literals). Two tiers behind one index at {data_dir}/{repository}/blobs/index/: payloads <= 4 KiB inline in the index, larger payloads in append-only segment files under {data_dir}/{repository}/blobs/segments/. Client-streaming, ONE blob per call: chunks assemble to at most 64 MiB and are validated against blob_id (a torn write never poisons the content address).

Source

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

Batched unary put of whole blobs (each already under the message ceiling). Every payload is content-hash validated before any write and the batch commits atomically, so a failure leaves no partial entries; a retry of the same batch is idempotent under content addressing.

Source

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

Batched, server-streaming get: chunks of every requested id that hits, packed under the frame budget. Compute-only (query residual / output materialization); hexastore partitions never call this.

Source

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

Server-streaming resolve: the registry keeps streaming ResolveStringsResponse frames until every requested position has been answered. Frames pack as many entries as fit under the gRPC message size limit (compute cannot predict response sizes — a request is only 16-byte hashes — so the batching decision lives with the side that knows the string sizes). Order is preserved across frames: entries are positionally aligned with ResolveStringsRequest.hashes exactly as in a unary response, with the concatenation of all frames’ values in request order.

Source

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

Source

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

Source

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

Source

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

Implementors§