pub enum Page {
DataPage {
buf: Bytes,
num_values: u32,
encoding: Encoding,
def_level_encoding: Encoding,
rep_level_encoding: Encoding,
statistics: Option<Statistics>,
},
DataPageV2 {
buf: Bytes,
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: Bytes,
num_values: u32,
encoding: Encoding,
is_sorted: bool,
},
}
Expand description
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
Data page Parquet format v1.
Fields
§
statistics: Option<Statistics>
Optional statistics for this page
DataPageV2
Data page Parquet format v2.
Fields
§
statistics: Option<Statistics>
Optional statistics for this page
DictionaryPage
Dictionary page.
Implementations§
source§impl Page
impl Page
sourcepub fn num_values(&self) -> u32
pub fn num_values(&self) -> u32
Returns number of values in this page.
sourcepub fn statistics(&self) -> Option<&Statistics>
pub fn statistics(&self) -> Option<&Statistics>
Returns optional Statistics
.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Page
impl RefUnwindSafe for Page
impl Send for Page
impl Sync for Page
impl Unpin for Page
impl UnwindSafe for Page
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
Mutably borrows from an owned value. Read more
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)