pub struct TqIvfQueryPlan {
pub quantizer_version: u64,
pub fingerprint: u64,
pub request_fingerprint: u64,
pub cluster_ids: Arc<[u32]>,
/* private fields */
}Expand description
Query-global IVF-TQ work shared by every segment: one probe route, one
set of TQ LUTs, and one ⟨q̂, centroid⟩ scalar per probed cluster.
Fields§
§quantizer_version: u64§fingerprint: u64TQ codec fingerprint (carried as codebook_version on disk).
request_fingerprint: u64§cluster_ids: Arc<[u32]>Implementations§
Source§impl TqIvfQueryPlan
impl TqIvfQueryPlan
pub fn build( coarse_centroids: &CoarseCentroids, codec: &TqCodec, query: &[f32], nprobe: usize, routing: IvfRoutingMode, ) -> Self
Sourcepub fn request_fingerprint_for(
coarse_centroids: &CoarseCentroids,
query: &[f32],
nprobe: usize,
routing: IvfRoutingMode,
) -> u64
pub fn request_fingerprint_for( coarse_centroids: &CoarseCentroids, query: &[f32], nprobe: usize, routing: IvfRoutingMode, ) -> u64
Cache identity matching normalized cosine routing geometry.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TqIvfQueryPlan
impl RefUnwindSafe for TqIvfQueryPlan
impl Send for TqIvfQueryPlan
impl Sync for TqIvfQueryPlan
impl Unpin for TqIvfQueryPlan
impl UnsafeUnpin for TqIvfQueryPlan
impl UnwindSafe for TqIvfQueryPlan
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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>
Converts
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>
Converts
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