Struct parquet::file::metadata::ColumnChunkMetaData[][src]

pub struct ColumnChunkMetaData { /* fields omitted */ }
Expand description

Metadata for a column chunk.

Implementations

impl ColumnChunkMetaData[src]

Represents common operations for a column chunk.

pub fn builder(column_descr: ColumnDescPtr) -> ColumnChunkMetaDataBuilder[src]

Returns builder for column chunk metadata.

pub fn file_path(&self) -> Option<&String>[src]

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[src]

Byte offset in file_path().

pub fn column_type(&self) -> Type[src]

Type of this column. Must be primitive.

pub fn column_path(&self) -> &ColumnPath[src]

Path (or identifier) of this column.

pub fn column_descr(&self) -> &ColumnDescriptor[src]

Descriptor for this column.

pub fn column_descr_ptr(&self) -> ColumnDescPtr[src]

Reference counted clone of descriptor for this column.

pub fn encodings(&self) -> &Vec<Encoding>[src]

All encodings used for this column.

pub fn num_values(&self) -> i64[src]

Total number of values in this column chunk.

pub fn compression(&self) -> Compression[src]

Compression for this column.

pub fn compressed_size(&self) -> i64[src]

Returns the total compressed data size of this column chunk.

pub fn uncompressed_size(&self) -> i64[src]

Returns the total uncompressed data size of this column chunk.

pub fn data_page_offset(&self) -> i64[src]

Returns the offset for the column data.

pub fn has_index_page(&self) -> bool[src]

Returns true if this column chunk contains a index page, false otherwise.

pub fn index_page_offset(&self) -> Option<i64>[src]

Returns the offset for the index page.

pub fn has_dictionary_page(&self) -> bool[src]

Returns true if this column chunk contains a dictionary page, false otherwise.

pub fn dictionary_page_offset(&self) -> Option<i64>[src]

Returns the offset for the dictionary page, if any.

pub fn byte_range(&self) -> (u64, u64)[src]

Returns the offset and length in bytes of the column chunk within the file

pub fn statistics(&self) -> Option<&Statistics>[src]

Returns statistics that are set for this column chunk, or None if no statistics are available.

pub fn from_thrift(column_descr: ColumnDescPtr, cc: ColumnChunk) -> Result<Self>[src]

Method to convert from Thrift.

pub fn to_thrift(&self) -> ColumnChunk[src]

Method to convert to Thrift.

Trait Implementations

impl Clone for ColumnChunkMetaData[src]

fn clone(&self) -> ColumnChunkMetaData[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for ColumnChunkMetaData[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V