pub struct ColumnChunkMetaData { /* private fields */ }
io_parquet
only.Expand description
Metadata for a column chunk.
Implementations
impl ColumnChunkMetaData
impl ColumnChunkMetaData
pub fn new(
column_chunk: ColumnChunk,
column_descr: ColumnDescriptor
) -> ColumnChunkMetaData
pub fn new(
column_chunk: ColumnChunk,
column_descr: ColumnDescriptor
) -> ColumnChunkMetaData
Returns a new ColumnChunkMetaData
pub 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.
pub fn file_offset(&self) -> i64
pub fn file_offset(&self) -> i64
Byte offset in file_path()
.
pub fn column_chunk(&self) -> &ColumnChunk
pub fn column_chunk(&self) -> &ColumnChunk
Returns this column’s [ColumnChunk
]
pub fn metadata(&self) -> &ColumnMetaData
pub fn metadata(&self) -> &ColumnMetaData
The column’s [ColumnMetaData
]
pub 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.
pub fn physical_type(&self) -> PhysicalType
pub fn physical_type(&self) -> PhysicalType
The PhysicalType
of this column.
pub fn statistics(&self) -> Option<Result<Arc<dyn Statistics + 'static>, Error>>
pub fn statistics(&self) -> Option<Result<Arc<dyn Statistics + 'static>, Error>>
Decodes the raw statistics into [Statistics
].
pub fn num_values(&self) -> i64
pub fn num_values(&self) -> i64
Total number of values in this column chunk. Note that this is not necessarily the number
of rows. E.g. the (nested) array [[1, 2], [3]]
has 2 rows and 3 values.
pub fn compression(&self) -> Compression
pub fn compression(&self) -> Compression
[Compression
] for this column.
pub fn compressed_size(&self) -> i64
pub fn compressed_size(&self) -> i64
Returns the total compressed data size of this column chunk.
pub fn uncompressed_size(&self) -> i64
pub fn uncompressed_size(&self) -> i64
Returns the total uncompressed data size of this column chunk.
pub fn data_page_offset(&self) -> i64
pub fn data_page_offset(&self) -> i64
Returns the offset for the column data.
pub 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.
pub fn index_page_offset(&self) -> Option<i64>
pub fn index_page_offset(&self) -> Option<i64>
Returns the offset for the index page.
pub fn dictionary_page_offset(&self) -> Option<i64>
pub fn dictionary_page_offset(&self) -> Option<i64>
Returns the offset for the dictionary page, if any.
pub 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
pub 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
pub fn into_thrift(self) -> ColumnChunk
pub fn into_thrift(self) -> ColumnChunk
Method to convert to Thrift.
Trait Implementations
impl Clone for ColumnChunkMetaData
impl Clone for ColumnChunkMetaData
fn 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