pub struct UnifiedVolumeBuilder { /* private fields */ }Expand description
Incremental builder for large external-sort merges (one SuperBlock at a time).
Implementations§
Source§impl UnifiedVolumeBuilder
impl UnifiedVolumeBuilder
pub fn with_lex_map(lex: &HashMap<u64, String>) -> Result<Self, LexError>
Sourcepub fn with_lex_entries(
lex: &HashMap<u64, LexiconEntry>,
) -> Result<Self, LexError>
pub fn with_lex_entries( lex: &HashMap<u64, LexiconEntry>, ) -> Result<Self, LexError>
Create a builder with a lexicon that supports embedded triples (LexiconEntry).
pub fn with_empty_lex() -> Self
Sourcepub fn with_volume_manifest(self, manifest: &Q42VolumeManifest) -> Result<Self>
pub fn with_volume_manifest(self, manifest: &Q42VolumeManifest) -> Result<Self>
Embed an immutable logical-volume descriptor in this root Q42 file’s front matter. Child segments remain ordinary self-contained Q42 files.
Set the author DID for DAG commit nodes (optional; defaults to 0 = system).
Sourcepub fn with_permissive_commons(self) -> Self
pub fn with_permissive_commons(self) -> Self
Affirm this tiny embedded volume is a Permissive Commons catalog.
Sourcepub fn with_sanctuary(self) -> Self
pub fn with_sanctuary(self) -> Self
Affirm this volume is Sanctuary / Selfhood.
pub fn push_block(&mut self, seq_id: u64, quins: &[NQuin]) -> Result<()>
pub fn block_count(&self) -> u64
pub fn finish(self, path: &Path) -> Result<()>
Sourcepub fn finish_to_bytes(self) -> Vec<u8> ⓘ
pub fn finish_to_bytes(self) -> Vec<u8> ⓘ
Serialise the unified v3 .q42 volume to an in-memory byte buffer.
Byte-for-byte the same volume finish writes to disk, but
returned as bytes for callers that embed a .q42 inside another container
— e.g. a crate::bundle .hmc pack — or ship it over the wire without
touching the filesystem. finish is exactly this plus a file write.
Auto Trait Implementations§
impl Freeze for UnifiedVolumeBuilder
impl RefUnwindSafe for UnifiedVolumeBuilder
impl Send for UnifiedVolumeBuilder
impl Sync for UnifiedVolumeBuilder
impl Unpin for UnifiedVolumeBuilder
impl UnsafeUnpin for UnifiedVolumeBuilder
impl UnwindSafe for UnifiedVolumeBuilder
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
§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