parquet::file::metadata

Struct RowGroupMetaDataBuilder

Source
pub struct RowGroupMetaDataBuilder(RowGroupMetaData);
Expand description

Builder for row group metadata.

Tuple Fields§

§0: RowGroupMetaData

Implementations§

Source§

impl RowGroupMetaDataBuilder

Source

fn new(schema_descr: SchemaDescPtr) -> Self

Creates new builder from schema descriptor.

Source

pub fn set_num_rows(self, value: i64) -> Self

Sets number of rows in this row group.

Source

pub fn set_sorting_columns(self, value: Option<Vec<SortingColumn>>) -> Self

Sets the sorting order for columns

Source

pub fn set_total_byte_size(self, value: i64) -> Self

Sets total size in bytes for this row group.

Source

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.

Source

pub fn set_column_metadata(self, value: Vec<ColumnChunkMetaData>) -> Self

Sets column metadata for this row group.

Source

pub fn add_column_metadata(self, value: ColumnChunkMetaData) -> Self

Adds a column metadata to this row group

Source

pub fn set_ordinal(self, value: i16) -> Self

Sets ordinal for this row group.

Source

pub fn set_file_offset(self, value: i64) -> Self

Sets file offset for this row group.

Source

pub fn build(self) -> Result<RowGroupMetaData>

Builds row group metadata.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T