pub struct DataFragment {
pub id: u64,
pub files: Vec<DataFile>,
pub deletion_file: Option<DeletionFile>,
pub physical_rows: u64,
pub row_id_sequence: Option<RowIdSequence>,
}Expand description
A DataFragment is a set of files which represent the different columns of the same rows. If column exists in the schema of a dataset, but the file for that column does not exist within a DataFragment of that dataset, that column consists entirely of nulls.
Fields§
§id: u64The ID of a DataFragment is unique within a dataset.
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, this includes rows that are now marked with
deletion tombstones. To compute the current number of rows, subtract
deletion_file.num_deleted_rows from this value.
row_id_sequence: Option<RowIdSequence>A serialized RowIdSequence message (see rowids.proto).
These are the row ids for the fragment, in order of the rows as they appear. That is, if a fragment has 3 rows, and the row ids are [1, 42, 3], then the first row is row 1, the second row is row 42, and the third row is row 3.
Trait Implementations§
Source§impl Clone for DataFragment
impl Clone for DataFragment
Source§fn clone(&self) -> DataFragment
fn clone(&self) -> DataFragment
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DataFragment
impl Debug for DataFragment
Source§impl Default for DataFragment
impl Default for DataFragment
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
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 DataFragment
impl Name for DataFragment
Source§const NAME: &'static str = "DataFragment"
const NAME: &'static str = "DataFragment"
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 DataFragment
impl PartialEq for DataFragment
Source§impl TryFrom<DataFragment> for Fragment
impl TryFrom<DataFragment> for Fragment
impl StructuralPartialEq for DataFragment
Auto Trait Implementations§
impl Freeze for DataFragment
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
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