pub struct PQData { /* private fields */ }Implementations§
Source§impl PQData
impl PQData
pub fn new( pq_pivot_table: FixedChunkPQTable, pq_compressed_data: Matrix<u8>, ) -> ANNResult<Self>
Sourcepub fn pq_table(&self) -> &TransposedTable
pub fn pq_table(&self) -> &TransposedTable
Get pq_table
Sourcepub fn get_dim(&self) -> usize
pub fn get_dim(&self) -> usize
Return the logical dimension of the original (pre-quantization) vectors.
Sourcepub fn get_num_chunks(&self) -> usize
pub fn get_num_chunks(&self) -> usize
Return the number of chunks in the underlying PQ schema.
Sourcepub fn get_num_centers(&self) -> usize
pub fn get_num_centers(&self) -> usize
Return the number of centers in the underlying PQ schema.
Sourcepub fn pq_compressed_data(&self) -> &Matrix<u8>
pub fn pq_compressed_data(&self) -> &Matrix<u8>
Get pq_compressed_data
pub fn get_compressed_vector(&self, vector_id: usize) -> ANNResult<&[u8]>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PQData
impl RefUnwindSafe for PQData
impl Send for PQData
impl Sync for PQData
impl Unpin for PQData
impl UnsafeUnpin for PQData
impl UnwindSafe for PQData
Blanket Implementations§
impl<T> AsyncFriendly for T
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
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