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
§
buf: Bytes
The underlying data buffer
§
statistics: Option<Statistics>
Optional statistics for this page
DataPageV2
Data page Parquet format v2.
Fields
§
buf: Bytes
The underlying data buffer
§
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more