pub struct EncodedQuad {
pub subject: EncodedTerm,
pub predicate: EncodedTerm,
pub object: EncodedTerm,
pub graph_name: EncodedTerm,
}Expand description
Encoded quad (subject, predicate, object, graph).
Fields§
§subject: EncodedTermEncoded subject.
predicate: EncodedTermEncoded predicate.
object: EncodedTermEncoded object.
graph_name: EncodedTermEncoded graph name (DefaultGraph for the default graph).
Implementations§
Source§impl EncodedQuad
impl EncodedQuad
Sourcepub fn new(
subject: EncodedTerm,
predicate: EncodedTerm,
object: EncodedTerm,
graph_name: EncodedTerm,
) -> Self
pub fn new( subject: EncodedTerm, predicate: EncodedTerm, object: EncodedTerm, graph_name: EncodedTerm, ) -> Self
Build an encoded quad from components.
Sourcepub fn same_triple(&self, other: &Self) -> bool
pub fn same_triple(&self, other: &Self) -> bool
S/P/O identity, ignoring Self::graph_name.
Every hexastore permutation stores G last (SPOG, SOPG, PSOG,
POSG, OPSG, TSG), so visible puts for the same triple are
adjacent after MVCC. Used when collapsing a merged SPARQL default graph.
Sourcepub fn into_merged_default(self) -> Self
pub fn into_merged_default(self) -> Self
Rewrite G to EncodedTerm::DefaultGraph.
Merge-default scans return this so compute never sees source-graph
identity on a SPARQL default-graph triple. Users never observe G for
those scans (scan.graph is unset). Do not use the rewritten quad
as a full-key exclusive start_after: DefaultGraph encodes as zero
bytes (the lowest G), which would re-enter the same triple’s named
graphs. Resume by skipping every quad with Self::same_triple.
Trait Implementations§
Source§impl Clone for EncodedQuad
impl Clone for EncodedQuad
Source§fn clone(&self) -> EncodedQuad
fn clone(&self) -> EncodedQuad
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more