Struct parquet_format_safe::DataPageHeader
source · pub struct DataPageHeader {
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: TInputProtocol>(
i_prot: &mut T
) -> Result<DataPageHeader>
pub async fn stream_from_in_protocol<T: TInputStreamProtocol>(
i_prot: &mut T
) -> Result<DataPageHeader>
pub fn write_to_out_protocol<T: TOutputProtocol>(
&self,
o_prot: &mut T
) -> Result<usize>
pub async fn write_to_out_stream_protocol<T: TOutputStreamProtocol>(
&self,
o_prot: &mut T
) -> Result<usize>
Trait Implementations§
source§impl AsyncReadThrift for DataPageHeader
impl AsyncReadThrift for DataPageHeader
source§fn stream_from_in_protocol<'life0, 'async_trait, T>(
i_prot: &'life0 mut T
) -> Pin<Box<dyn Future<Output = Result<DataPageHeader>> + Send + 'async_trait>>where
T: 'async_trait + TInputStreamProtocol,
'life0: 'async_trait,
fn stream_from_in_protocol<'life0, 'async_trait, T>(
i_prot: &'life0 mut T
) -> Pin<Box<dyn Future<Output = Result<DataPageHeader>> + Send + 'async_trait>>where
T: 'async_trait + TInputStreamProtocol,
'life0: 'async_trait,
Available on crate feature
async
only.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 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