pub struct Q42VolumeSet { /* private fields */ }Expand description
Locally backed multi-segment query snapshot. It deliberately has no remote transport yet: IPFS/HTTP range sources will implement the same contract.
Implementations§
Source§impl Q42VolumeSet
impl Q42VolumeSet
Sourcepub fn open_root(path: &Path) -> Result<Self>
pub fn open_root(path: &Path) -> Result<Self>
Open a local logical volume set: parse the root’s embedded manifest and open each sibling segment file.
Sourcepub fn root(&self) -> &Q42Volume
pub fn root(&self) -> &Q42Volume
The front-matter root that owns the snapshot-wide lexicon and manifest.
Sourcepub fn manifest(&self) -> &Q42VolumeManifest
pub fn manifest(&self) -> &Q42VolumeManifest
The decoded root manifest.
Sourcepub fn lexicon_segments(&self) -> &[Q42Volume]
pub fn lexicon_segments(&self) -> &[Q42Volume]
Opened local lexicon shards, in manifest order.
Sourcepub fn lookup_parts(&self, hash: u64) -> Option<(&str, &str)>
pub fn lookup_parts(&self, hash: u64) -> Option<(&str, &str)>
Resolve a term’s (namespace, local) parts through the root
dictionary or its front-manifested physical lexicon shards.
Construction owns the maps/mappings; lookup borrows directly from the
selected Q42LEX page. Works for verbatim and v4 namespaced entries.
Sourcepub fn lookup_owned(&self, hash: u64) -> Option<String>
pub fn lookup_owned(&self, hash: u64) -> Option<String>
Cold-path convenience: the fully reassembled term for hash.
Sourcepub fn lookup_hash(&self, hash: u64) -> Option<&str>
pub fn lookup_hash(&self, hash: u64) -> Option<&str>
Resolve a term through the root dictionary or its front-manifested
physical lexicon shards. Construction owns the maps/mappings; lookup
borrows directly from the selected Q42LEX page. Verbatim entries
only — v4 namespaced entries return None (their bytes are not
contiguous); use Self::lookup_parts / Self::lookup_owned.
Sourcepub fn verify_segment_hashes(&self, root_path: &Path) -> Result<()>
pub fn verify_segment_hashes(&self, root_path: &Path) -> Result<()>
Re-hash every segment and lexicon shard beside root_path
and compare against the manifest’s attested SHA-256s — fails
on the first mismatch.
Sourcepub fn verify_all(&self, root_path: &Path) -> Result<Q42VerificationReceipt>
pub fn verify_all(&self, root_path: &Path) -> Result<Q42VerificationReceipt>
Exhaustively verify a local logical snapshot: manifest-attested child digests plus every decoded data Quin. This remains a cold operation; each physical verifier uses a single fixed SuperBlock scratch buffer.
Auto Trait Implementations§
impl Freeze for Q42VolumeSet
impl RefUnwindSafe for Q42VolumeSet
impl Send for Q42VolumeSet
impl Sync for Q42VolumeSet
impl Unpin for Q42VolumeSet
impl UnsafeUnpin for Q42VolumeSet
impl UnwindSafe for Q42VolumeSet
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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