pub struct IvfData { /* private fields */ }Implementations§
source§impl IvfData
impl IvfData
pub fn empty() -> Self
pub fn with_centroids(centroids: Arc<FixedSizeListArray>) -> Self
pub async fn load(reader: &FileReader) -> Result<Self>
sourcepub async fn write(
&self,
writer: &mut FileWriter<ManifestDescribing>
) -> Result<()>
pub async fn write( &self, writer: &mut FileWriter<ManifestDescribing> ) -> Result<()>
Write the IVF metadata to the lance file.
pub fn add_partition(&mut self, num_rows: u32)
pub fn has_centroids(&self) -> bool
pub fn num_partitions(&self) -> usize
Trait Implementations§
source§impl PartialEq for IvfData
impl PartialEq for IvfData
impl StructuralPartialEq for IvfData
Auto Trait Implementations§
impl Freeze for IvfData
impl !RefUnwindSafe for IvfData
impl Send for IvfData
impl Sync for IvfData
impl Unpin for IvfData
impl !UnwindSafe for IvfData
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
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