Struct parquet::file::metadata::RowGroupMetaData
source · pub struct RowGroupMetaData { /* private fields */ }
Expand description
Metadata for a row group
Includes ColumnChunkMetaData
for each column in the row group, the number of rows
the total byte size of the row group, and the SchemaDescriptor
for the row group.
Implementations§
source§impl RowGroupMetaData
impl RowGroupMetaData
sourcepub fn builder(schema_descr: SchemaDescPtr) -> RowGroupMetaDataBuilder
pub fn builder(schema_descr: SchemaDescPtr) -> RowGroupMetaDataBuilder
Returns builder for row group metadata.
sourcepub fn num_columns(&self) -> usize
pub fn num_columns(&self) -> usize
Number of columns in this row group.
sourcepub fn column(&self, i: usize) -> &ColumnChunkMetaData
pub fn column(&self, i: usize) -> &ColumnChunkMetaData
Returns column chunk metadata for i
th column.
sourcepub fn columns(&self) -> &[ColumnChunkMetaData]
pub fn columns(&self) -> &[ColumnChunkMetaData]
Returns slice of column chunk metadata.
sourcepub fn columns_mut(&mut self) -> &mut [ColumnChunkMetaData]
pub fn columns_mut(&mut self) -> &mut [ColumnChunkMetaData]
Returns mutable slice of column chunk metadata.
sourcepub fn sorting_columns(&self) -> Option<&Vec<SortingColumn>>
pub fn sorting_columns(&self) -> Option<&Vec<SortingColumn>>
Returns the sort ordering of the rows in this RowGroup if any
sourcepub fn total_byte_size(&self) -> i64
pub fn total_byte_size(&self) -> i64
Total byte size of all uncompressed column data in this row group.
sourcepub fn compressed_size(&self) -> i64
pub fn compressed_size(&self) -> i64
Total size of all compressed column data in this row group.
sourcepub fn schema_descr(&self) -> &SchemaDescriptor
pub fn schema_descr(&self) -> &SchemaDescriptor
Returns reference to a schema descriptor.
sourcepub fn schema_descr_ptr(&self) -> SchemaDescPtr
pub fn schema_descr_ptr(&self) -> SchemaDescPtr
Returns reference counted clone of schema descriptor.
sourcepub fn ordinal(&self) -> Option<i16>
pub fn ordinal(&self) -> Option<i16>
Returns ordinal position of this row group in file.
For example if this is the first row group in the file, this will return 0. If this is the second row group in the file, this will return 1.
sourcepub fn file_offset(&self) -> Option<i64>
pub fn file_offset(&self) -> Option<i64>
Returns file offset of this row group in file.
sourcepub fn from_thrift(
schema_descr: SchemaDescPtr,
rg: RowGroup,
) -> Result<RowGroupMetaData>
pub fn from_thrift( schema_descr: SchemaDescPtr, rg: RowGroup, ) -> Result<RowGroupMetaData>
Method to convert from Thrift.
sourcepub fn into_builder(self) -> RowGroupMetaDataBuilder
pub fn into_builder(self) -> RowGroupMetaDataBuilder
Converts this RowGroupMetaData
into a RowGroupMetaDataBuilder
Trait Implementations§
source§impl Clone for RowGroupMetaData
impl Clone for RowGroupMetaData
source§fn clone(&self) -> RowGroupMetaData
fn clone(&self) -> RowGroupMetaData
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RowGroupMetaData
impl Debug for RowGroupMetaData
source§impl PartialEq for RowGroupMetaData
impl PartialEq for RowGroupMetaData
impl StructuralPartialEq for RowGroupMetaData
Auto Trait Implementations§
impl Freeze for RowGroupMetaData
impl RefUnwindSafe for RowGroupMetaData
impl Send for RowGroupMetaData
impl Sync for RowGroupMetaData
impl Unpin for RowGroupMetaData
impl UnwindSafe for RowGroupMetaData
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)