pub struct ColumnChunkMetaData { /* private fields */ }
io_parquet
only.Expand description
Metadata for a column chunk.
Implementations
sourceimpl ColumnChunkMetaData
impl ColumnChunkMetaData
Represents common operations for a column chunk.
sourcepub fn new(
column_chunk: ColumnChunk,
column_descr: ColumnDescriptor
) -> ColumnChunkMetaData
pub fn new(
column_chunk: ColumnChunk,
column_descr: ColumnDescriptor
) -> ColumnChunkMetaData
Create a new ColumnChunkMetaData
sourcepub fn file_path(&self) -> &Option<String>
pub fn file_path(&self) -> &Option<String>
File where the column chunk is stored.
If not set, assumed to belong to the same file as the metadata. This path is relative to the current file.
sourcepub fn file_offset(&self) -> i64
pub fn file_offset(&self) -> i64
Byte offset in file_path()
.
sourcepub fn descriptor(&self) -> &ColumnDescriptor
pub fn descriptor(&self) -> &ColumnDescriptor
The ColumnDescriptor
for this column. This descriptor contains the physical and logical type
of the pages.
sourcepub fn physical_type(&self) -> PhysicalType
pub fn physical_type(&self) -> PhysicalType
The ColumnDescriptor
for this column. This descriptor contains the physical and logical type
of the pages.
sourcepub fn statistics(
&self
) -> Option<Result<Arc<dyn Statistics + 'static>, ParquetError>>
pub fn statistics(
&self
) -> Option<Result<Arc<dyn Statistics + 'static>, ParquetError>>
Decodes the raw statistics into a statistics
sourcepub fn num_values(&self) -> i64
pub fn num_values(&self) -> i64
Total number of values in this column chunk.
sourcepub fn compression(&self) -> Compression
pub fn compression(&self) -> Compression
Compression
for this column.
sourcepub fn compressed_size(&self) -> i64
pub fn compressed_size(&self) -> i64
Returns the total compressed data size of this column chunk.
sourcepub fn uncompressed_size(&self) -> i64
pub fn uncompressed_size(&self) -> i64
Returns the total uncompressed data size of this column chunk.
sourcepub fn data_page_offset(&self) -> i64
pub fn data_page_offset(&self) -> i64
Returns the offset for the column data.
sourcepub fn has_index_page(&self) -> bool
pub fn has_index_page(&self) -> bool
Returns true
if this column chunk contains a index page, false
otherwise.
sourcepub fn index_page_offset(&self) -> Option<i64>
pub fn index_page_offset(&self) -> Option<i64>
Returns the offset for the index page.
sourcepub fn dictionary_page_offset(&self) -> Option<i64>
pub fn dictionary_page_offset(&self) -> Option<i64>
Returns the offset for the dictionary page, if any.
sourcepub fn column_encoding(&self) -> &Vec<Encoding, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
pub fn column_encoding(&self) -> &Vec<Encoding, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Returns the encoding for this column
sourcepub fn byte_range(&self) -> (u64, u64)
pub fn byte_range(&self) -> (u64, u64)
Returns the offset and length in bytes of the column chunk within the file
sourcepub fn try_from_thrift(
column_descr: ColumnDescriptor,
column_chunk: ColumnChunk
) -> Result<ColumnChunkMetaData, ParquetError>
pub fn try_from_thrift(
column_descr: ColumnDescriptor,
column_chunk: ColumnChunk
) -> Result<ColumnChunkMetaData, ParquetError>
Method to convert from Thrift.
sourcepub fn into_thrift(self) -> ColumnChunk
pub fn into_thrift(self) -> ColumnChunk
Method to convert to Thrift.
Trait Implementations
sourceimpl Clone for ColumnChunkMetaData
impl Clone for ColumnChunkMetaData
sourcefn clone(&self) -> ColumnChunkMetaData
fn clone(&self) -> ColumnChunkMetaData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for ColumnChunkMetaData
impl Send for ColumnChunkMetaData
impl Sync for ColumnChunkMetaData
impl Unpin for ColumnChunkMetaData
impl UnwindSafe for ColumnChunkMetaData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more