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

Metadata for a column chunk.

Implementations§

source§

impl ColumnChunkMetaData

source

pub fn new(column_chunk: ColumnChunk, column_descr: ColumnDescriptor) -> Self

Returns a new ColumnChunkMetaData

source

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.

source

pub fn file_offset(&self) -> i64

Byte offset in file_path().

source

pub fn column_chunk(&self) -> &ColumnChunk

Returns this column’s ColumnChunk

source

pub fn metadata(&self) -> &ColumnMetaData

The column’s ColumnMetaData

source

pub fn descriptor(&self) -> &ColumnDescriptor

The ColumnDescriptor for this column. This descriptor contains the physical and logical type of the pages.

source

pub fn physical_type(&self) -> PhysicalType

The PhysicalType of this column.

source

pub fn statistics(&self) -> Option<Result<Arc<dyn Statistics>>>

Decodes the raw statistics into Statistics.

source

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.

source

pub fn compression(&self) -> Compression

Compression for this column.

source

pub fn compressed_size(&self) -> i64

Returns the total compressed data size of this column chunk.

source

pub fn uncompressed_size(&self) -> i64

Returns the total uncompressed data size of this column chunk.

source

pub fn data_page_offset(&self) -> i64

Returns the offset for the column data.

source

pub fn has_index_page(&self) -> bool

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

source

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

Returns the offset for the index page.

source

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

Returns the offset for the dictionary page, if any.

source

pub fn column_encoding(&self) -> &Vec<Encoding>

Returns the encoding for this column

source

pub fn byte_range(&self) -> (u64, u64)

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

source

pub fn into_thrift(self) -> ColumnChunk

Method to convert to Thrift.

Trait Implementations§

source§

impl Clone for ColumnChunkMetaData

source§

fn clone(&self) -> ColumnChunkMetaData

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ColumnChunkMetaData

source§

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

Formats the value using the given formatter. Read more
source§

impl From<&ColumnChunkMetaData> for PageMetaData

source§

fn from(column: &ColumnChunkMetaData) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.