pub struct DataPage { /* 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.
Implementations
sourceimpl DataPage
impl DataPage
pub fn new(
header: DataPageHeader,
buffer: Vec<u8, Global>,
dictionary_page: Option<Arc<dyn DictPage + 'static>>,
descriptor: ColumnDescriptor
) -> DataPage
pub fn header(&self) -> &DataPageHeader
pub fn dictionary_page(&self) -> Option<&Arc<dyn DictPage + 'static>>
pub fn buffer(&self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
sourcepub fn buffer_mut(&mut self) -> &mut Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
pub fn buffer_mut(&mut self) -> &mut Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
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 + 'static>, ParquetError>>
pub fn statistics(
&self
) -> Option<Result<Arc<dyn Statistics + 'static>, ParquetError>>
Decodes the raw statistics into a statistics
pub fn descriptor(&self) -> &ColumnDescriptor
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for DataPage
impl Send for DataPage
impl Sync for DataPage
impl Unpin for DataPage
impl !UnwindSafe for DataPage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more