pub struct IndexMetadata {
pub uuid: Option<Uuid>,
pub fields: Vec<i32>,
pub name: String,
pub dataset_version: u64,
pub fragment_bitmap: Vec<u8>,
pub index_details: Option<Any>,
pub index_version: Option<i32>,
pub created_at: Option<u64>,
pub base_id: Option<u32>,
}
Expand description
Metadata describing an index.
Fields§
§uuid: Option<Uuid>
Unique ID of an index. It is unique across all the dataset versions.
fields: Vec<i32>
The columns to build the index. These refer to file.Field.id.
name: String
Index name. Must be unique within one dataset version.
dataset_version: u64
The version of the dataset this index was built from.
fragment_bitmap: Vec<u8>
A bitmap of the included fragment ids.
This may by used to determine how much of the dataset is covered by the
index. This information can be retrieved from the dataset by looking at
the dataset at dataset_version
. However, since the old version may be
deleted while the index is still in use, this information is also stored
in the index.
The bitmap is stored as a 32-bit Roaring bitmap.
index_details: Option<Any>
Details, specific to the index type, which are needed to load / interpret the index
Indices should avoid putting large amounts of information in this field, as it will bloat the manifest.
index_version: Option<i32>
The minimum lance version that this index is compatible with.
created_at: Option<u64>
Timestamp when the index was created (UTC timestamp in milliseconds since epoch)
This field is optional for backward compatibility. For existing indices created before this field was added, this will be None/null.
base_id: Option<u32>
The base path index of the data file. Used when the file is imported or referred from another dataset. Lance use it as key of the base_paths field in Manifest to determine the actual base path of the data file.
Implementations§
Source§impl IndexMetadata
impl IndexMetadata
Sourcepub fn index_version(&self) -> i32
pub fn index_version(&self) -> i32
Returns the value of index_version
, or the default value if index_version
is unset.
Sourcepub fn created_at(&self) -> u64
pub fn created_at(&self) -> u64
Returns the value of created_at
, or the default value if created_at
is unset.
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 Default for IndexMetadata
impl Default for IndexMetadata
Source§impl From<&IndexMetadata> for IndexMetadata
impl From<&IndexMetadata> for IndexMetadata
Source§fn from(idx: &IndexMetadata) -> Self
fn from(idx: &IndexMetadata) -> Self
Source§impl Message for IndexMetadata
impl Message for IndexMetadata
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.Source§impl Name for IndexMetadata
impl Name for IndexMetadata
Source§const NAME: &'static str = "IndexMetadata"
const NAME: &'static str = "IndexMetadata"
Message
.
This name is the same as it appears in the source .proto file, e.g. FooBar
.Source§const PACKAGE: &'static str = "lance.table"
const PACKAGE: &'static str = "lance.table"
.
, e.g. google.protobuf
.Source§fn full_name() -> String
fn full_name() -> String
Message
.
It’s prefixed with the package name and names of any parent messages,
e.g. google.rpc.BadRequest.FieldViolation
.
By default, this is the package name followed by the message name.
Fully-qualified names must be unique within a domain of Type URLs.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