Struct parquet2::page::DataPageHeaderV1
source · pub struct DataPageHeaderV1 {
pub num_values: i32,
pub encoding: Encoding,
pub definition_level_encoding: Encoding,
pub repetition_level_encoding: Encoding,
pub statistics: Option<Statistics>,
}
Expand description
Data page header
Fields§
§num_values: i32
Number of values, including NULLs, in this data page. *
encoding: Encoding
Encoding used for this data page *
definition_level_encoding: Encoding
Encoding used for definition levels *
repetition_level_encoding: Encoding
Encoding used for repetition levels *
statistics: Option<Statistics>
Optional statistics for the data in this page*
Implementations§
source§impl DataPageHeader
impl DataPageHeader
pub fn new<F5>( num_values: i32, encoding: Encoding, definition_level_encoding: Encoding, repetition_level_encoding: Encoding, statistics: F5 ) -> DataPageHeaderwhere F5: Into<Option<Statistics>>,
pub fn read_from_in_protocol<T>(i_prot: &mut T) -> Result<DataPageHeader, Error>where T: TInputProtocol,
pub async fn stream_from_in_protocol<T>( i_prot: &mut T ) -> impl Future<Output = Result<DataPageHeader, Error>>where T: TInputStreamProtocol,
pub fn write_to_out_protocol<T>(&self, o_prot: &mut T) -> Result<usize, Error>where T: TOutputProtocol,
pub async fn write_to_out_stream_protocol<T>( &self, o_prot: &mut T ) -> impl Future<Output = Result<usize, Error>>where T: TOutputStreamProtocol,
Trait Implementations§
source§impl AsyncReadThrift for DataPageHeader
impl AsyncReadThrift for DataPageHeader
fn stream_from_in_protocol<'life0, 'async_trait, T>( i_prot: &'life0 mut T ) -> Pin<Box<dyn Future<Output = Result<DataPageHeader, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, T: 'async_trait + TInputStreamProtocol,
source§impl Clone for DataPageHeader
impl Clone for DataPageHeader
source§fn clone(&self) -> DataPageHeader
fn clone(&self) -> DataPageHeader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl DataPageHeaderExt for DataPageHeader
impl DataPageHeaderExt for DataPageHeader
source§impl Debug for DataPageHeader
impl Debug for DataPageHeader
source§impl Hash for DataPageHeader
impl Hash for DataPageHeader
source§impl Ord for DataPageHeader
impl Ord for DataPageHeader
source§fn cmp(&self, other: &DataPageHeader) -> Ordering
fn cmp(&self, other: &DataPageHeader) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<DataPageHeader> for DataPageHeader
impl PartialEq<DataPageHeader> for DataPageHeader
source§fn eq(&self, other: &DataPageHeader) -> bool
fn eq(&self, other: &DataPageHeader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<DataPageHeader> for DataPageHeader
impl PartialOrd<DataPageHeader> for DataPageHeader
source§fn partial_cmp(&self, other: &DataPageHeader) -> Option<Ordering>
fn partial_cmp(&self, other: &DataPageHeader) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more