pub struct IndexMetadata {
pub uuid: Uuid,
pub fields: Vec<i32>,
pub name: String,
pub dataset_version: u64,
pub fragment_bitmap: Option<RoaringBitmap>,
pub index_details: Option<Arc<Any>>,
pub index_version: i32,
pub created_at: Option<DateTime<Utc>>,
pub base_id: Option<u32>,
}
Expand description
Index metadata
Fields§
§uuid: Uuid
Unique ID across all dataset versions.
fields: Vec<i32>
Fields to build the index.
name: String
Human readable index name
dataset_version: u64
The latest version of the dataset this index covers
fragment_bitmap: Option<RoaringBitmap>
The fragment ids this index covers.
This may contain fragment ids that no longer exist in the dataset.
If this is None, then this is unknown.
index_details: Option<Arc<Any>>
Metadata specific to the index type
This is an Option because older versions of Lance may not have this defined. However, it should always be present in newer versions.
index_version: i32
The index version.
created_at: Option<DateTime<Utc>>
Timestamp when the index was created
This field is optional for backward compatibility. For existing indices created before this field was added, this will be None.
base_id: Option<u32>
The base path index of the index files. Used when the index is imported or referred from another dataset. Lance uses it as key of the base_paths field in Manifest to determine the actual base path of the index files.
Implementations§
Source§impl IndexMetadata
impl IndexMetadata
pub fn effective_fragment_bitmap( &self, existing_fragments: &RoaringBitmap, ) -> Option<RoaringBitmap>
Trait Implementations§
Source§impl Clone for IndexMetadata
impl Clone for IndexMetadata
Source§fn clone(&self) -> IndexMetadata
fn clone(&self) -> IndexMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for IndexMetadata
impl Debug for IndexMetadata
Source§impl DeepSizeOf for IndexMetadata
impl DeepSizeOf for IndexMetadata
Source§fn deep_size_of_children(&self, context: &mut Context) -> usize
fn deep_size_of_children(&self, context: &mut Context) -> usize
Source§fn deep_size_of(&self) -> usize
fn deep_size_of(&self) -> usize
Source§impl From<&IndexMetadata> for IndexMetadata
impl From<&IndexMetadata> for IndexMetadata
Source§fn from(idx: &IndexMetadata) -> Self
fn from(idx: &IndexMetadata) -> Self
Source§impl PartialEq for IndexMetadata
impl PartialEq for IndexMetadata
Source§impl TryFrom<IndexMetadata> for IndexMetadata
impl TryFrom<IndexMetadata> for IndexMetadata
impl StructuralPartialEq for IndexMetadata
Auto Trait Implementations§
impl Freeze for IndexMetadata
impl RefUnwindSafe for IndexMetadata
impl Send for IndexMetadata
impl Sync for IndexMetadata
impl Unpin for IndexMetadata
impl UnwindSafe for IndexMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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