pub struct RowGroupMetaData {
columns: Vec<ColumnChunkMetaData>,
num_rows: i64,
sorting_columns: Option<Vec<SortingColumn>>,
total_byte_size: i64,
schema_descr: SchemaDescPtr,
file_offset: Option<i64>,
ordinal: Option<i16>,
}
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.
Fields§
§columns: Vec<ColumnChunkMetaData>
§num_rows: i64
§sorting_columns: Option<Vec<SortingColumn>>
§total_byte_size: i64
§schema_descr: SchemaDescPtr
§file_offset: Option<i64>
We can’t infer from file offset of first column since there may empty columns in row group.
ordinal: Option<i16>
Ordinal position of this row group in file
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 HeapSize for RowGroupMetaData
impl HeapSize 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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