Struct lance_core::format::pb::IndexMetadata
source · pub struct IndexMetadata {
pub uuid: Option<Uuid>,
pub fields: Vec<i32>,
pub name: String,
pub dataset_version: u64,
pub fragment_bitmap: Vec<u8>,
}Expand description
Metadata describing the 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.
name: StringIndex name. Must be unique within one dataset version.
dataset_version: u64The 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.
Trait Implementations§
source§impl Clone for IndexMetadata
impl Clone for IndexMetadata
source§fn clone(&self) -> IndexMetadata
fn clone(&self) -> IndexMetadata
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for IndexMetadata
impl Debug for IndexMetadata
source§impl Default for IndexMetadata
impl Default for IndexMetadata
source§impl Message for IndexMetadata
impl Message for IndexMetadata
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.source§impl PartialEq for IndexMetadata
impl PartialEq for IndexMetadata
source§fn eq(&self, other: &IndexMetadata) -> bool
fn eq(&self, other: &IndexMetadata) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for IndexMetadata
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more