Enum parquet::column::page::Page [−][src]
pub enum Page {
DataPage {
buf: ByteBufferPtr,
num_values: u32,
encoding: Encoding,
def_level_encoding: Encoding,
rep_level_encoding: Encoding,
},
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,
},
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
DataPageFields of DataPage
buf: ByteBufferPtr | |
num_values: u32 | |
encoding: Encoding | |
def_level_encoding: Encoding | |
rep_level_encoding: Encoding |
DataPageV2Fields of 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 |
DictionaryPageFields of DictionaryPage
buf: ByteBufferPtr | |
num_values: u32 | |
encoding: Encoding | |
is_sorted: bool |
Methods
impl Page[src]
impl Pagepub fn page_type(&self) -> PageType[src]
pub fn page_type(&self) -> PageTypeReturns PageType for this page.
pub fn buffer(&self) -> &ByteBufferPtr[src]
pub fn buffer(&self) -> &ByteBufferPtrReturns internal byte buffer reference for this page.
pub fn num_values(&self) -> u32[src]
pub fn num_values(&self) -> u32Returns number of values in this page.
pub fn encoding(&self) -> Encoding[src]
pub fn encoding(&self) -> EncodingReturns this page Encoding.