pub struct DataPage {
pub descriptor: Descriptor,
pub selected_rows: Option<Vec<Interval>>,
/* 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
§selected_rows: Option<Vec<Interval>>
Implementations§
source§impl DataPage
impl DataPage
pub fn new( header: DataPageHeader, buffer: Vec<u8>, descriptor: Descriptor, rows: Option<usize> ) -> Self
pub fn header(&self) -> &DataPageHeader
pub fn buffer(&self) -> &[u8] ⓘ
sourcepub fn selected_rows(&self) -> Option<&[Interval]>
pub fn selected_rows(&self) -> Option<&[Interval]>
the rows to be selected by this page.
When None
, all rows are to be considered.
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 encoding(&self) -> Encoding
pub fn definition_level_encoding(&self) -> Encoding
pub fn repetition_level_encoding(&self) -> Encoding
sourcepub fn statistics(&self) -> Option<Result<Arc<dyn Statistics>>>
pub fn statistics(&self) -> Option<Result<Arc<dyn 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