pub struct RefinementArtifact { /* private fields */ }Expand description
Complete immutable graph replacement produced by one refinement pass.
Implementations§
Source§impl RefinementArtifact
impl RefinementArtifact
Sourcepub const fn pass(&self) -> RefinementPass
pub const fn pass(&self) -> RefinementPass
Returns the pass represented by this artifact.
Sourcepub fn encoded_region(&self) -> &[u8] ⓘ
pub fn encoded_region(&self) -> &[u8] ⓘ
Returns the complete authenticated graph-region bytes.
Sourcepub fn old_to_new_rows(&self) -> Option<&[u32]>
pub fn old_to_new_rows(&self) -> Option<&[u32]>
Returns old-row to new-row ids for renumbering, and None otherwise.
Sourcepub const fn work_rows_completed(&self) -> u64
pub const fn work_rows_completed(&self) -> u64
Returns deterministic row work completed by this invocation.
Sourcepub fn write_segment(
&self,
vfs: &dyn Vfs,
directory: &Path,
input: &SegmentReader,
output_id: SegmentId,
analyzer: &Analyzer,
policy: DurabilityPolicy,
) -> Result<SegmentMeta, RefinementError>
pub fn write_segment( &self, vfs: &dyn Vfs, directory: &Path, input: &SegmentReader, output_id: SegmentId, analyzer: &Analyzer, policy: DurabilityPolicy, ) -> Result<SegmentMeta, RefinementError>
Writes the replacement beside its immutable source without publishing it.
Auto Trait Implementations§
impl Freeze for RefinementArtifact
impl RefUnwindSafe for RefinementArtifact
impl Send for RefinementArtifact
impl Sync for RefinementArtifact
impl Unpin for RefinementArtifact
impl UnsafeUnpin for RefinementArtifact
impl UnwindSafe for RefinementArtifact
Blanket Implementations§
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
Mutably borrows from an owned value. Read more