Struct parquet::schema::types::BasicTypeInfo
source · pub struct BasicTypeInfo { /* private fields */ }
Expand description
Basic type info. This contains information such as the name of the type, the repetition level, the logical type and the kind of the type (group, primitive).
Implementations§
source§impl BasicTypeInfo
impl BasicTypeInfo
sourcepub fn has_repetition(&self) -> bool
pub fn has_repetition(&self) -> bool
Returns true
if type has repetition field set, false
otherwise.
This is mostly applied to group type, because primitive type always has
repetition set.
sourcepub fn repetition(&self) -> Repetition
pub fn repetition(&self) -> Repetition
Returns Repetition
value for the type.
sourcepub fn converted_type(&self) -> ConvertedType
pub fn converted_type(&self) -> ConvertedType
Returns ConvertedType
value for the type.
sourcepub fn logical_type(&self) -> Option<LogicalType>
pub fn logical_type(&self) -> Option<LogicalType>
Returns LogicalType
value for the type.
Trait Implementations§
source§impl Clone for BasicTypeInfo
impl Clone for BasicTypeInfo
source§fn clone(&self) -> BasicTypeInfo
fn clone(&self) -> BasicTypeInfo
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 BasicTypeInfo
impl Debug for BasicTypeInfo
source§impl PartialEq for BasicTypeInfo
impl PartialEq for BasicTypeInfo
source§fn eq(&self, other: &BasicTypeInfo) -> bool
fn eq(&self, other: &BasicTypeInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for BasicTypeInfo
impl StructuralEq for BasicTypeInfo
impl StructuralPartialEq for BasicTypeInfo
Auto Trait Implementations§
impl RefUnwindSafe for BasicTypeInfo
impl Send for BasicTypeInfo
impl Sync for BasicTypeInfo
impl Unpin for BasicTypeInfo
impl UnwindSafe for BasicTypeInfo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more