Struct parquet::file::metadata::ColumnChunkMetaData
source · pub struct ColumnChunkMetaData { /* private fields */ }
Expand description
Metadata for a column chunk.
Implementations§
source§impl ColumnChunkMetaData
impl ColumnChunkMetaData
Represents common operations for a column chunk.
sourcepub fn builder(column_descr: ColumnDescPtr) -> ColumnChunkMetaDataBuilder
pub fn builder(column_descr: ColumnDescPtr) -> ColumnChunkMetaDataBuilder
Returns builder for column chunk metadata.
sourcepub fn file_path(&self) -> Option<&str>
pub fn file_path(&self) -> Option<&str>
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 of ColumnMetaData
in file_path()
.
Note that the meaning of this field has been inconsistent between implementations
so its use has since been deprecated in the Parquet specification. Modern implementations
will set this to 0
to indicate that the ColumnMetaData
is solely contained in the
ColumnChunk
struct.
sourcepub fn column_type(&self) -> Type
pub fn column_type(&self) -> Type
Type of this column. Must be primitive.
sourcepub fn column_path(&self) -> &ColumnPath
pub fn column_path(&self) -> &ColumnPath
Path (or identifier) of this column.
sourcepub fn column_descr(&self) -> &ColumnDescriptor
pub fn column_descr(&self) -> &ColumnDescriptor
Descriptor for this column.
sourcepub fn column_descr_ptr(&self) -> ColumnDescPtr
pub fn column_descr_ptr(&self) -> ColumnDescPtr
Reference counted clone of descriptor for this column.
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 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 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 statistics(&self) -> Option<&Statistics>
pub fn statistics(&self) -> Option<&Statistics>
Returns statistics that are set for this column chunk,
or None
if no statistics are available.
sourcepub fn page_encoding_stats(&self) -> Option<&Vec<PageEncodingStats>>
pub fn page_encoding_stats(&self) -> Option<&Vec<PageEncodingStats>>
Returns the offset for the page encoding stats,
or None
if no page encoding stats are available.
sourcepub fn bloom_filter_offset(&self) -> Option<i64>
pub fn bloom_filter_offset(&self) -> Option<i64>
Returns the offset for the bloom filter.
sourcepub fn bloom_filter_length(&self) -> Option<i32>
pub fn bloom_filter_length(&self) -> Option<i32>
Returns the offset for the bloom filter.
sourcepub fn column_index_offset(&self) -> Option<i64>
pub fn column_index_offset(&self) -> Option<i64>
Returns the offset for the column index.
sourcepub fn column_index_length(&self) -> Option<i32>
pub fn column_index_length(&self) -> Option<i32>
Returns the offset for the column index length.
sourcepub fn offset_index_offset(&self) -> Option<i64>
pub fn offset_index_offset(&self) -> Option<i64>
Returns the offset for the offset index.
sourcepub fn offset_index_length(&self) -> Option<i32>
pub fn offset_index_length(&self) -> Option<i32>
Returns the offset for the offset index length.
sourcepub fn unencoded_byte_array_data_bytes(&self) -> Option<i64>
pub fn unencoded_byte_array_data_bytes(&self) -> Option<i64>
Returns the number of bytes of variable length data after decoding.
Only set for BYTE_ARRAY columns. This field may not be set by older writers.
sourcepub fn repetition_level_histogram(&self) -> Option<&LevelHistogram>
pub fn repetition_level_histogram(&self) -> Option<&LevelHistogram>
Returns the repetition level histogram.
The returned value vec[i]
is how many values are at repetition level i
. For example,
vec[0]
indicates how many rows the page contains.
This field may not be set by older writers.
sourcepub fn definition_level_histogram(&self) -> Option<&LevelHistogram>
pub fn definition_level_histogram(&self) -> Option<&LevelHistogram>
Returns the definition level histogram.
The returned value vec[i]
is how many values are at definition level i
. For example,
vec[max_definition_level]
indicates how many non-null values are present in the page.
This field may not be set by older writers.
sourcepub fn from_thrift(column_descr: ColumnDescPtr, cc: ColumnChunk) -> Result<Self>
pub fn from_thrift(column_descr: ColumnDescPtr, cc: ColumnChunk) -> Result<Self>
Method to convert from Thrift.
sourcepub fn to_thrift(&self) -> ColumnChunk
pub fn to_thrift(&self) -> ColumnChunk
Method to convert to Thrift.
sourcepub fn to_column_metadata_thrift(&self) -> ColumnMetaData
pub fn to_column_metadata_thrift(&self) -> ColumnMetaData
Method to convert to Thrift ColumnMetaData
sourcepub fn into_builder(self) -> ColumnChunkMetaDataBuilder
pub fn into_builder(self) -> ColumnChunkMetaDataBuilder
Converts this ColumnChunkMetaData
into a ColumnChunkMetaDataBuilder
Trait Implementations§
source§impl Clone for ColumnChunkMetaData
impl Clone for ColumnChunkMetaData
source§fn clone(&self) -> ColumnChunkMetaData
fn clone(&self) -> ColumnChunkMetaData
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ColumnChunkMetaData
impl Debug for ColumnChunkMetaData
source§impl From<ColumnChunkMetaData> for ColumnChunkMetaDataBuilder
impl From<ColumnChunkMetaData> for ColumnChunkMetaDataBuilder
source§fn from(value: ColumnChunkMetaData) -> Self
fn from(value: ColumnChunkMetaData) -> Self
source§impl PartialEq for ColumnChunkMetaData
impl PartialEq for ColumnChunkMetaData
impl StructuralPartialEq for ColumnChunkMetaData
Auto Trait Implementations§
impl !Freeze for ColumnChunkMetaData
impl RefUnwindSafe for ColumnChunkMetaData
impl Send for ColumnChunkMetaData
impl Sync for ColumnChunkMetaData
impl Unpin for ColumnChunkMetaData
impl UnwindSafe for ColumnChunkMetaData
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
)