[][src]Enum parquet::column::page::Page

pub enum Page {
    DataPage {
        buf: ByteBufferPtr,
        num_values: u32,
        encoding: Encoding,
        def_level_encoding: Encoding,
        rep_level_encoding: Encoding,
        statistics: Option<Statistics>,
    },
    DataPageV2 {
        buf: ByteBufferPtr,
        num_values: u32,
        encoding: Encoding,
        num_nulls: u32,
        num_rows: u32,
        def_levels_byte_len: u32,
        rep_levels_byte_len: u32,
        is_compressed: bool,
        statistics: Option<Statistics>,
    },
    DictionaryPage {
        buf: ByteBufferPtr,
        num_values: u32,
        encoding: Encoding,
        is_sorted: bool,
    },
}

Parquet Page definition.

List of supported pages. These are 1-to-1 mapped from the equivalent Thrift definitions, except buf which used to store uncompressed bytes of the page.

Variants

DataPage

Fields of DataPage

buf: ByteBufferPtrnum_values: u32encoding: Encodingdef_level_encoding: Encodingrep_level_encoding: Encodingstatistics: Option<Statistics>
DataPageV2

Fields of DataPageV2

buf: ByteBufferPtrnum_values: u32encoding: Encodingnum_nulls: u32num_rows: u32def_levels_byte_len: u32rep_levels_byte_len: u32is_compressed: boolstatistics: Option<Statistics>
DictionaryPage

Fields of DictionaryPage

buf: ByteBufferPtrnum_values: u32encoding: Encodingis_sorted: bool

Implementations

impl Page[src]

pub fn page_type(&self) -> PageType[src]

Returns PageType for this page.

pub fn buffer(&self) -> &ByteBufferPtr[src]

Returns internal byte buffer reference for this page.

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

Returns number of values in this page.

pub fn encoding(&self) -> Encoding[src]

Returns this page Encoding.

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

Returns optional Statistics.

Auto Trait Implementations

impl !RefUnwindSafe for Page

impl !Send for Page

impl !Sync for Page

impl Unpin for Page

impl !UnwindSafe for Page

Blanket Implementations

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

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

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

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

impl<T> Instrument for T[src]

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

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

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.

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.

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

impl<T> WithSubscriber for T[src]