pub trait Indexer: Execute<()> { }Expand description
An RDF consumer that creates or updates a persistent index without payload output.
The program defines its index format, creation and update semantics,
concurrency behavior, and guarantees on failure. Ok(()) represents
successful completion under those guarantees; it does not independently
promise a transaction, crash durability, or safe replay after failure.
§Command-line contract
PROGRAM [OPTIONS] [INPUT-FILE] INDEX-FILE
With one operand, that operand is the index destination and input is stdin.
With two, the first selects the input file (- for stdin) and the second
selects the destination. An index destination is required and can be a file
or directory according to the program. It cannot be -; use ./- for a
literal path of that name. Stdout carries no payload.
IndexerOptions::input selects the RDF format (jsonl by default).
IndexerOptions::other can supply the destination operand. See
crate::programs for links to concrete execution behavior and the
indexer specification.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".