pub struct Index {
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: UuidUnique ID across all dataset versions.
fields: Vec<i32>Fields to build the index.
name: StringHuman readable index name
dataset_version: u64The 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: i32The 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 Index
impl Index
pub fn effective_fragment_bitmap( &self, existing_fragments: &RoaringBitmap, ) -> Option<RoaringBitmap>
Trait Implementations§
Source§impl DeepSizeOf for Index
impl DeepSizeOf for Index
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<&Index> for IndexMetadata
impl From<&Index> for IndexMetadata
Source§impl TryFrom<IndexMetadata> for Index
impl TryFrom<IndexMetadata> for Index
impl StructuralPartialEq for Index
Auto Trait Implementations§
impl Freeze for Index
impl RefUnwindSafe for Index
impl Send for Index
impl Sync for Index
impl Unpin for Index
impl UnwindSafe for Index
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