pub struct DataPage {
pub descriptor: Descriptor,
pub num_rows: Option<usize>,
/* private fields */
}
Expand description
A DataPage
is an uncompressed, encoded representation of a Parquet data page. It holds actual data
and thus cloning it is expensive.
Fields§
§descriptor: Descriptor
§num_rows: Option<usize>
Implementations§
Source§impl DataPage
impl DataPage
pub fn new( header: DataPageHeader, buffer: CowBuffer, descriptor: Descriptor, num_rows: usize, ) -> Self
pub fn header(&self) -> &DataPageHeader
pub fn buffer(&self) -> &[u8] ⓘ
Sourcepub fn buffer_mut(&mut self) -> &mut Vec<u8> ⓘ
pub fn buffer_mut(&mut self) -> &mut Vec<u8> ⓘ
Returns a mutable reference to the internal buffer. Useful to recover the buffer after the page has been decoded.
pub fn num_values(&self) -> usize
pub fn null_count(&self) -> Option<usize>
pub fn num_rows(&self) -> Option<usize>
pub fn encoding(&self) -> Encoding
pub fn definition_level_encoding(&self) -> Encoding
pub fn repetition_level_encoding(&self) -> Encoding
Sourcepub fn statistics(&self) -> Option<ParquetResult<Statistics>>
pub fn statistics(&self) -> Option<ParquetResult<Statistics>>
Decodes the raw statistics into a statistics
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for DataPage
impl RefUnwindSafe for DataPage
impl Send for DataPage
impl Sync for DataPage
impl Unpin for DataPage
impl UnwindSafe for DataPage
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