pub(crate) enum LevelData {
Absent,
Materialized(Vec<i16>),
Uniform {
value: i16,
count: usize,
},
}Expand description
The data necessary to write a primitive Arrow array to parquet, taking into account any non-primitive parents it may have in the arrow representation
Variants§
Implementations§
Source§impl LevelData
impl LevelData
fn new(present: bool) -> Self
pub(crate) fn as_ref(&self) -> LevelDataRef<'_>
pub(crate) fn slice(&self, offset: usize, len: usize) -> Self
fn append_run(&mut self, value: i16, count: usize)
fn extend_from_iter<I>(&mut self, iter: I)where
I: IntoIterator<Item = i16>,
Sourcefn materialize_mut(&mut self) -> Option<&mut Vec<i16>>
fn materialize_mut(&mut self) -> Option<&mut Vec<i16>>
Convert a uniform run into a materialized buffer if needed, then return
the mutable level buffer. Returns None when no physical level stream exists.
Trait Implementations§
impl Eq for LevelData
Auto Trait Implementations§
impl Freeze for LevelData
impl RefUnwindSafe for LevelData
impl Send for LevelData
impl Sync for LevelData
impl Unpin for LevelData
impl UnsafeUnpin for LevelData
impl UnwindSafe for LevelData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.