Struct lance_core::format::pb::DataFragment
source · pub struct DataFragment {
pub id: u64,
pub files: Vec<DataFile>,
pub deletion_file: Option<DeletionFile>,
pub physical_rows: u64,
}Expand description
Data fragment. A fragment is a set of files which represent the different columns of the same rows. If column exists in the schema, but the related file does not exist, treat this column as nulls.
Fields§
§id: u64Unique ID of each DataFragment
files: Vec<DataFile>§deletion_file: Option<DeletionFile>File that indicates which rows, if any, should be considered deleted.
physical_rows: u64Number of original rows in the fragment, not counting deletions. To compute
the current number of rows, subtract deletion_file.num_deleted_rows from
this value.
Trait Implementations§
source§impl Clone for DataFragment
impl Clone for DataFragment
source§fn clone(&self) -> DataFragment
fn clone(&self) -> DataFragment
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 DataFragment
impl Debug for DataFragment
source§impl Default for DataFragment
impl Default for DataFragment
source§impl From<&DataFragment> for Fragment
impl From<&DataFragment> for Fragment
source§fn from(p: &DataFragment) -> Self
fn from(p: &DataFragment) -> Self
Converts to this type from the input type.
source§impl From<&Fragment> for DataFragment
impl From<&Fragment> for DataFragment
source§impl Message for DataFragment
impl Message for DataFragment
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 DataFragment
impl PartialEq for DataFragment
source§fn eq(&self, other: &DataFragment) -> bool
fn eq(&self, other: &DataFragment) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DataFragment
Auto Trait Implementations§
impl RefUnwindSafe for DataFragment
impl Send for DataFragment
impl Sync for DataFragment
impl Unpin for DataFragment
impl UnwindSafe for DataFragment
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