pub struct SegmentBuild<'a> {
pub id: SegmentId,
pub scheme: u16,
pub dims: u32,
pub codes: &'a [u8],
pub factors: SegmentFactors<'a>,
pub rescore: &'a [f32],
pub columns: &'a ColumnStore,
pub alive: &'a AliveSet,
}Expand description
Complete in-memory data sealed into one immutable segment.
Fields§
§id: SegmentIdSortable immutable identity.
scheme: u16Permanent per-segment quantization scheme id.
dims: u32Logical vector dimension.
codes: &'a [u8]Contiguous row-major packed codes with no row padding.
factors: SegmentFactors<'a>Contiguous factor records matching scheme.
rescore: &'a [f32]Contiguous row-major f32 exact-rescore source.
columns: &'a ColumnStoreTyped metadata arrays aligned to row ids.
alive: &'a AliveSetAlive/tombstone state aligned to row ids.
Trait Implementations§
Source§impl<'a> Clone for SegmentBuild<'a>
impl<'a> Clone for SegmentBuild<'a>
impl<'a> Copy for SegmentBuild<'a>
Auto Trait Implementations§
impl<'a> Freeze for SegmentBuild<'a>
impl<'a> RefUnwindSafe for SegmentBuild<'a>
impl<'a> Send for SegmentBuild<'a>
impl<'a> Sync for SegmentBuild<'a>
impl<'a> Unpin for SegmentBuild<'a>
impl<'a> UnsafeUnpin for SegmentBuild<'a>
impl<'a> UnwindSafe for SegmentBuild<'a>
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