Struct parquet2::schema::PageHeader [−][src]
pub struct PageHeader { pub type_: PageType, pub uncompressed_page_size: i32, pub compressed_page_size: i32, pub crc: Option<i32>, pub data_page_header: Option<DataPageHeader>, pub index_page_header: Option<IndexPageHeader>, pub dictionary_page_header: Option<DictionaryPageHeader>, pub data_page_header_v2: Option<DataPageHeaderV2>, }
Fields
type_: PageType
the type of the page: indicates which of the *_header fields is set *
uncompressed_page_size: i32
Uncompressed page size in bytes (not including this header) *
compressed_page_size: i32
Compressed page size in bytes (not including this header) *
crc: Option<i32>
32bit crc for the data below. This allows for disabling checksumming in HDFS if only a few pages needs to be read
data_page_header: Option<DataPageHeader>
index_page_header: Option<IndexPageHeader>
dictionary_page_header: Option<DictionaryPageHeader>
data_page_header_v2: Option<DataPageHeaderV2>
Implementations
pub fn new<F4, F5, F6, F7, F8>(
type_: PageType,
uncompressed_page_size: i32,
compressed_page_size: i32,
crc: F4,
data_page_header: F5,
index_page_header: F6,
dictionary_page_header: F7,
data_page_header_v2: F8
) -> PageHeader where
F5: Into<Option<DataPageHeader>>,
F7: Into<Option<DictionaryPageHeader>>,
F8: Into<Option<DataPageHeaderV2>>,
F4: Into<Option<i32>>,
F6: Into<Option<IndexPageHeader>>,
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for PageHeader
impl Send for PageHeader
impl Sync for PageHeader
impl Unpin for PageHeader
impl UnwindSafe for PageHeader
Blanket Implementations
Mutably borrows from an owned value. Read more