Struct parquet_format_safe::DictionaryPageHeader
source · [−]pub struct DictionaryPageHeader {
pub num_values: i32,
pub encoding: Encoding,
pub is_sorted: Option<bool>,
}
Expand description
The dictionary page must be placed at the first position of the column chunk if it is partly or completely dictionary encoded. At most one dictionary page can be placed in a column chunk.
Fields
num_values: i32
Number of values in the dictionary *
encoding: Encoding
Encoding using this dictionary page *
is_sorted: Option<bool>
If true, the entries in the dictionary are sorted in ascending order *
Implementations
sourceimpl DictionaryPageHeader
impl DictionaryPageHeader
pub fn new<F3>(
num_values: i32,
encoding: Encoding,
is_sorted: F3
) -> DictionaryPageHeader where
F3: Into<Option<bool>>,
pub fn read_from_in_protocol<T: TInputProtocol>(
i_prot: &mut T
) -> Result<DictionaryPageHeader>
pub fn write_to_out_protocol<T: TOutputProtocol>(
&self,
o_prot: &mut T
) -> Result<usize>
Trait Implementations
sourceimpl Clone for DictionaryPageHeader
impl Clone for DictionaryPageHeader
sourcefn clone(&self) -> DictionaryPageHeader
fn clone(&self) -> DictionaryPageHeader
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DictionaryPageHeader
impl Debug for DictionaryPageHeader
sourceimpl Hash for DictionaryPageHeader
impl Hash for DictionaryPageHeader
sourceimpl Ord for DictionaryPageHeader
impl Ord for DictionaryPageHeader
sourcefn cmp(&self, other: &DictionaryPageHeader) -> Ordering
fn cmp(&self, other: &DictionaryPageHeader) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<DictionaryPageHeader> for DictionaryPageHeader
impl PartialEq<DictionaryPageHeader> for DictionaryPageHeader
sourcefn eq(&self, other: &DictionaryPageHeader) -> bool
fn eq(&self, other: &DictionaryPageHeader) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DictionaryPageHeader) -> bool
fn ne(&self, other: &DictionaryPageHeader) -> bool
This method tests for !=
.
sourceimpl PartialOrd<DictionaryPageHeader> for DictionaryPageHeader
impl PartialOrd<DictionaryPageHeader> for DictionaryPageHeader
sourcefn partial_cmp(&self, other: &DictionaryPageHeader) -> Option<Ordering>
fn partial_cmp(&self, other: &DictionaryPageHeader) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
sourceimpl ReadThrift for DictionaryPageHeader
impl ReadThrift for DictionaryPageHeader
fn read_from_in_protocol<T: TInputProtocol>(
i_prot: &mut T
) -> Result<DictionaryPageHeader>
impl Eq for DictionaryPageHeader
impl StructuralEq for DictionaryPageHeader
impl StructuralPartialEq for DictionaryPageHeader
Auto Trait Implementations
impl RefUnwindSafe for DictionaryPageHeader
impl Send for DictionaryPageHeader
impl Sync for DictionaryPageHeader
impl Unpin for DictionaryPageHeader
impl UnwindSafe for DictionaryPageHeader
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