Struct parquet::data_type::FixedLenByteArray [−][src]
#[repr(transparent)]pub struct FixedLenByteArray(_);
Expand description
Wrapper type for performance reasons, this represents FIXED_LEN_BYTE_ARRAY
but in all other
considerations behaves the same as ByteArray
Performance notes:
This type is a little unfortunate, without it the compiler generates code that takes quite a
big hit on the CPU pipeline. Essentially the previous version stalls awaiting the result of
T::get_physical_type() == Type::FIXED_LEN_BYTE_ARRAY
.
Its debatable if this is wanted, it is out of spec for what parquet documents as its base types, although there are code paths in the Rust (and potentially the C++) versions that warrant this.
With this wrapper type the compiler generates more targetted code paths matching the higher level logical types, removing the data-hazard from all decoding and encoding paths.
Methods from Deref<Target = ByteArray>
pub fn set_data(&mut self, data: ByteBufferPtr)
[src]
pub fn set_data(&mut self, data: ByteBufferPtr)
[src]Set data from another byte buffer.
pub fn slice(&self, start: usize, len: usize) -> Self
[src]
pub fn slice(&self, start: usize, len: usize) -> Self
[src]Returns ByteArray
instance with slice of values for a data.
pub fn as_utf8(&self) -> Result<&str>
[src]
Trait Implementations
impl AsBytes for FixedLenByteArray
[src]
impl AsBytes for FixedLenByteArray
[src]impl Clone for FixedLenByteArray
[src]
impl Clone for FixedLenByteArray
[src]fn clone(&self) -> FixedLenByteArray
[src]
fn clone(&self) -> FixedLenByteArray
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for FixedLenByteArray
[src]
impl Debug for FixedLenByteArray
[src]impl Default for FixedLenByteArray
[src]
impl Default for FixedLenByteArray
[src]fn default() -> FixedLenByteArray
[src]
fn default() -> FixedLenByteArray
[src]Returns the “default value” for a type. Read more
impl Deref for FixedLenByteArray
[src]
impl Deref for FixedLenByteArray
[src]impl DerefMut for FixedLenByteArray
[src]
impl DerefMut for FixedLenByteArray
[src]impl Display for FixedLenByteArray
[src]
impl Display for FixedLenByteArray
[src]impl From<ByteArray> for FixedLenByteArray
[src]
impl From<ByteArray> for FixedLenByteArray
[src]impl From<FixedLenByteArray> for ByteArray
[src]
impl From<FixedLenByteArray> for ByteArray
[src]fn from(other: FixedLenByteArray) -> Self
[src]
fn from(other: FixedLenByteArray) -> Self
[src]Performs the conversion.
impl PartialEq<ByteArray> for FixedLenByteArray
[src]
impl PartialEq<ByteArray> for FixedLenByteArray
[src]impl PartialEq<FixedLenByteArray> for FixedLenByteArray
[src]
impl PartialEq<FixedLenByteArray> for FixedLenByteArray
[src]impl PartialEq<FixedLenByteArray> for ByteArray
[src]
impl PartialEq<FixedLenByteArray> for ByteArray
[src]impl PartialOrd<ByteArray> for FixedLenByteArray
[src]
impl PartialOrd<ByteArray> for FixedLenByteArray
[src]fn partial_cmp(&self, other: &ByteArray) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &ByteArray) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl PartialOrd<FixedLenByteArray> for FixedLenByteArray
[src]
impl PartialOrd<FixedLenByteArray> for FixedLenByteArray
[src]fn partial_cmp(&self, other: &FixedLenByteArray) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &FixedLenByteArray) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl PartialOrd<FixedLenByteArray> for ByteArray
[src]
impl PartialOrd<FixedLenByteArray> for ByteArray
[src]fn partial_cmp(&self, other: &FixedLenByteArray) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &FixedLenByteArray) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl SliceAsBytes for FixedLenByteArray
[src]
impl SliceAsBytes for FixedLenByteArray
[src]fn slice_as_bytes(_self: &[Self]) -> &[u8]
[src]
fn slice_as_bytes(_self: &[Self]) -> &[u8]
[src]Returns slice of bytes for a slice of this data type.
unsafe fn slice_as_bytes_mut(_self: &mut [Self]) -> &mut [u8]
[src]
unsafe fn slice_as_bytes_mut(_self: &mut [Self]) -> &mut [u8]
[src]Return the internal representation as a mutable slice Read more
Auto Trait Implementations
impl RefUnwindSafe for FixedLenByteArray
impl Send for FixedLenByteArray
impl Sync for FixedLenByteArray
impl Unpin for FixedLenByteArray
impl UnwindSafe for FixedLenByteArray
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,