Skip to main content

QuinSink

Trait QuinSink 

Source
pub trait QuinSink {
    // Required method
    fn push(&mut self, q: NQuin) -> Result<()>;

    // Provided method
    fn push_lex(&mut self, _hash: u64, _term: &str) { ... }
}
Expand description

Accepts quins from format parsers without mandating heap growth.

Required Methods§

Source

fn push(&mut self, q: NQuin) -> Result<()>

Provided Methods§

Source

fn push_lex(&mut self, _hash: u64, _term: &str)

Record a term’s hash → lexical string so the value can be recovered later (literal text, IRIs). Default is a no-op — sinks that do not build a lexicon (or callers that do not need recovery) pay nothing. The streaming ingest sink implements this to populate the .q42 front-of-file Q42LEX section.

Implementors§