pub struct SelectedVectorRead { /* private fields */ }Implementations§
Source§impl SelectedVectorRead
impl SelectedVectorRead
Sourcepub fn capture(
base: Option<VectorReadSnapshot>,
dimensions: u32,
selected: impl IntoIterator<Item = (DocId, Option<VectorReadSnapshot>)>,
control: &StorageReadControl,
) -> StorageBackendResult<VectorReadSnapshot>
pub fn capture( base: Option<VectorReadSnapshot>, dimensions: u32, selected: impl IntoIterator<Item = (DocId, Option<VectorReadSnapshot>)>, control: &StorageReadControl, ) -> StorageBackendResult<VectorReadSnapshot>
Retain already evaluated replacements/deletions in strictly increasing document order. None for the base means the supplied selection is the entire visible field. Capture inspects only controls and dimensions.
Trait Implementations§
Source§impl VectorRead for SelectedVectorRead
impl VectorRead for SelectedVectorRead
Source§fn corpus_fingerprint(
&self,
control: &StorageReadControl,
) -> StorageBackendResult<Option<[u8; 32]>>
fn corpus_fingerprint( &self, control: &StorageReadControl, ) -> StorageBackendResult<Option<[u8; 32]>>
Trustworthy identity of this complete fixed field, obtained from retained metadata. None means fixed-model reuse cannot be verified; callers must not replace it with a user-supplied label.
fn check_control( &self, control: &StorageReadControl, ) -> StorageBackendResult<()>
fn dimensions(&self) -> u32
fn next_document_after( &self, after: Option<DocId>, control: &StorageReadControl, ) -> StorageBackendResult<Option<DocId>>
Source§fn document_vector_count(
&self,
document: DocId,
control: &StorageReadControl,
) -> StorageBackendResult<u64>
fn document_vector_count( &self, document: DocId, control: &StorageReadControl, ) -> StorageBackendResult<u64>
Validate contiguous ordinal keys and return their count. Missing and explicitly empty tensors both have zero vectors.
Source§fn read_vector(
&self,
document: DocId,
ordinal: u32,
control: &StorageReadControl,
) -> StorageBackendResult<Option<BudgetedVec<f32>>>
fn read_vector( &self, document: DocId, ordinal: u32, control: &StorageReadControl, ) -> StorageBackendResult<Option<BudgetedVec<f32>>>
Read one ordinal without invoking a caller while a provider read lock is held. Absent ordinals return None; malformed values fail.
Auto Trait Implementations§
impl !RefUnwindSafe for SelectedVectorRead
impl !UnwindSafe for SelectedVectorRead
impl Freeze for SelectedVectorRead
impl Send for SelectedVectorRead
impl Sync for SelectedVectorRead
impl Unpin for SelectedVectorRead
impl UnsafeUnpin for SelectedVectorRead
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