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
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: u64
Unique ID of each DataFragment
files: Vec<DataFile>
§deletion_file: Option<DeletionFile>
File that indicates which rows, if any, should be considered deleted.
physical_rows: u64
Number 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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
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>
self
.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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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