pub struct RepDefUnraveler { /* private fields */ }
Expand description
Starts with serialized repetition and definition levels and unravels them into validity buffers and offsets buffers
This is used during decoding to create the necessary arrow structures
Implementations§
Source§impl RepDefUnraveler
impl RepDefUnraveler
Sourcepub fn new(
rep_levels: Option<LevelBuffer>,
def_levels: Option<LevelBuffer>,
) -> Self
pub fn new( rep_levels: Option<LevelBuffer>, def_levels: Option<LevelBuffer>, ) -> Self
Creates a new unraveler from serialized repetition and definition information
Sourcepub fn unravel_offsets<T: ArrowNativeType>(&mut self) -> Result<OffsetBuffer<T>>
pub fn unravel_offsets<T: ArrowNativeType>(&mut self) -> Result<OffsetBuffer<T>>
Unravels a layer of offsets from the unraveler into the given offset width
When decoding a list the caller should first unravel the offsets and then unravel the validity (this is the opposite order used during encoding)
Sourcepub fn unravel_validity(&mut self) -> Option<NullBuffer>
pub fn unravel_validity(&mut self) -> Option<NullBuffer>
Unravels a layer of validity from the definition levels
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RepDefUnraveler
impl RefUnwindSafe for RepDefUnraveler
impl Send for RepDefUnraveler
impl Sync for RepDefUnraveler
impl Unpin for RepDefUnraveler
impl UnwindSafe for RepDefUnraveler
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more