Struct lance_core::format::Fragment
source · pub struct Fragment {
pub id: u64,
pub files: Vec<DataFile>,
pub deletion_file: Option<DeletionFile>,
pub physical_rows: usize,
}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: u64Fragment ID
files: Vec<DataFile>Files within the fragment.
deletion_file: Option<DeletionFile>Optional file with deleted row ids.
physical_rows: usizeOriginal number of rows in the fragment. If this is zero, then it is unknown.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Fragment
impl<'de> Deserialize<'de> for Fragment
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 PartialEq for Fragment
impl PartialEq for Fragment
impl Eq for Fragment
impl StructuralEq for Fragment
impl StructuralPartialEq for Fragment
Auto Trait Implementations§
impl RefUnwindSafe for Fragment
impl Send for Fragment
impl Sync for Fragment
impl Unpin for Fragment
impl UnwindSafe for Fragment
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.