pub struct SegmentMeta {
pub num_rows: u64,
pub num_pages: u32,
pub page_size_bytes: u32,
pub min_pk: u64,
pub max_pk: u64,
pub total_bytes: usize,
}Expand description
Lightweight summary of a finished segment — what the catalog
manifest (v5.3 work) records to find the segment on disk and
what RowLocator::Cold (v5.1 work) carries inside the PB
index. Generated by Segment::encode.
Fields§
§num_rows: u64§num_pages: u32§page_size_bytes: u32§min_pk: u64§max_pk: u64§total_bytes: usizeLength of the full serialised segment in bytes. Useful for
preallocating the file or sanity-checking after write_all.
Trait Implementations§
Source§impl Clone for SegmentMeta
impl Clone for SegmentMeta
Source§fn clone(&self) -> SegmentMeta
fn clone(&self) -> SegmentMeta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SegmentMeta
impl RefUnwindSafe for SegmentMeta
impl Send for SegmentMeta
impl Sync for SegmentMeta
impl Unpin for SegmentMeta
impl UnsafeUnpin for SegmentMeta
impl UnwindSafe for SegmentMeta
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