pub enum IngestMode {
Complete,
StripLiterals,
}Expand description
How much of the source graph the .q42 retains.
The historical ingest hashed every subject/predicate/object into a 48-byte quin and wrote an
empty lexicon (lex_length: 0). That threw away every URI and every literal — the source text
was irrecoverable — while the shrunk output was presented as “compression”. It was not compression;
it was data loss reported as a size win. That is exactly the kind of claim-vs-reality gap this
project’s integrity rules (CLAUDE.md §15) forbid. This enum makes the choice explicit and the
reporting honest.
Variants§
Complete
Lossless. Intern every subject/predicate URI and every literal (full UTF-8 / Unicode) into
the q42 lexicon, so Q42LexMmap::lookup_hash(quin.field) recovers the original term. The .q42
is a faithful, reversible representation of the source graph. This is the default — honesty over
a smaller file.
StripLiterals
Lossy, structure-only. Store only the 48-byte hash quins; discard all human-readable text (URIs and literals). Smaller on disk, but the original strings CANNOT be recovered. The size reduction is data loss, not compression, and is reported as such. Use only when the graph structure alone is wanted and the term strings are available elsewhere.
Trait Implementations§
Source§impl Clone for IngestMode
impl Clone for IngestMode
Source§fn clone(&self) -> IngestMode
fn clone(&self) -> IngestMode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IngestMode
impl Debug for IngestMode
Source§impl Default for IngestMode
impl Default for IngestMode
Source§fn default() -> IngestMode
fn default() -> IngestMode
Source§impl PartialEq for IngestMode
impl PartialEq for IngestMode
Source§fn eq(&self, other: &IngestMode) -> bool
fn eq(&self, other: &IngestMode) -> bool
self and other values to be equal, and is used by ==.impl Copy for IngestMode
impl Eq for IngestMode
impl StructuralPartialEq for IngestMode
Auto Trait Implementations§
impl Freeze for IngestMode
impl RefUnwindSafe for IngestMode
impl Send for IngestMode
impl Sync for IngestMode
impl Unpin for IngestMode
impl UnsafeUnpin for IngestMode
impl UnwindSafe for IngestMode
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more