pub struct RowGroupMetaDataBuilder(RowGroupMetaData);
Expand description
Builder for row group metadata.
Tuple Fields§
§0: RowGroupMetaData
Implementations§
Source§impl RowGroupMetaDataBuilder
impl RowGroupMetaDataBuilder
Sourcefn new(schema_descr: SchemaDescPtr) -> Self
fn new(schema_descr: SchemaDescPtr) -> Self
Creates new builder from schema descriptor.
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
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>
Converts
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>
Converts
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