Struct parquet::file::metadata::RowGroupMetaDataBuilder
source · pub struct RowGroupMetaDataBuilder(/* private fields */);
Expand description
Builder for row group metadata.
Implementations§
source§impl RowGroupMetaDataBuilder
impl RowGroupMetaDataBuilder
sourcepub fn set_num_rows(self, value: i64) -> Self
pub fn set_num_rows(self, value: i64) -> Self
Sets number of rows in this row group.
sourcepub fn set_sorting_columns(self, value: Option<Vec<SortingColumn>>) -> Self
pub fn set_sorting_columns(self, value: Option<Vec<SortingColumn>>) -> Self
Sets the sorting order for columns
sourcepub fn set_total_byte_size(self, value: i64) -> Self
pub fn set_total_byte_size(self, value: i64) -> Self
Sets total size in bytes for this row group.
sourcepub fn take_columns(&mut self) -> Vec<ColumnChunkMetaData>
pub fn take_columns(&mut self) -> Vec<ColumnChunkMetaData>
Takes ownership of the the column metadata in this builder, and clears the list of columns.
This can be used for more efficient creation of a new RowGroupMetaData from an existing one.
sourcepub fn set_column_metadata(self, value: Vec<ColumnChunkMetaData>) -> Self
pub fn set_column_metadata(self, value: Vec<ColumnChunkMetaData>) -> Self
Sets column metadata for this row group.
sourcepub fn add_column_metadata(self, value: ColumnChunkMetaData) -> Self
pub fn add_column_metadata(self, value: ColumnChunkMetaData) -> Self
Adds a column metadata to this row group
sourcepub fn set_ordinal(self, value: i16) -> Self
pub fn set_ordinal(self, value: i16) -> Self
Sets ordinal for this row group.
sourcepub fn set_file_offset(self, value: i64) -> Self
pub fn set_file_offset(self, value: i64) -> Self
Sets file offset for this row group.
sourcepub fn build(self) -> Result<RowGroupMetaData>
pub fn build(self) -> Result<RowGroupMetaData>
Builds row group metadata.
Auto Trait Implementations§
impl Freeze for RowGroupMetaDataBuilder
impl RefUnwindSafe for RowGroupMetaDataBuilder
impl Send for RowGroupMetaDataBuilder
impl Sync for RowGroupMetaDataBuilder
impl Unpin for RowGroupMetaDataBuilder
impl UnwindSafe for RowGroupMetaDataBuilder
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