pub(crate) struct GenericInProgressArray {
source: Option<ArrayRef>,
buffered_arrays: Vec<ArrayRef>,
}Expand description
Generic implementation for InProgressArray that works with any type of
array.
Internally, this buffers arrays and then calls other kernels such as
concat to produce the final array.
Fields§
§source: Option<ArrayRef>The current source
buffered_arrays: Vec<ArrayRef>The buffered array slices
Implementations§
Trait Implementations§
Source§impl Debug for GenericInProgressArray
impl Debug for GenericInProgressArray
Source§impl InProgressArray for GenericInProgressArray
impl InProgressArray for GenericInProgressArray
Source§fn set_source(&mut self, source: Option<ArrayRef>)
fn set_source(&mut self, source: Option<ArrayRef>)
Set the source array. Read more
Source§fn copy_rows(&mut self, offset: usize, len: usize) -> Result<(), ArrowError>
fn copy_rows(&mut self, offset: usize, len: usize) -> Result<(), ArrowError>
Copy rows from the current source array into the in-progress array Read more
Source§fn copy_rows_by_filter_from(
&mut self,
source: ArrayRef,
filter: &FilterPredicate,
) -> Result<(), ArrowError>
fn copy_rows_by_filter_from( &mut self, source: ArrayRef, filter: &FilterPredicate, ) -> Result<(), ArrowError>
Copy rows selected by
filter from source.Source§fn finish(&mut self) -> Result<ArrayRef, ArrowError>
fn finish(&mut self) -> Result<ArrayRef, ArrowError>
Finish the currently in-progress array and return it as an
ArrayRefSource§fn copy_rows_by_filter(
&mut self,
filter: &FilterPredicate,
) -> Result<(), ArrowError>
fn copy_rows_by_filter( &mut self, filter: &FilterPredicate, ) -> Result<(), ArrowError>
Copy rows selected by
filter from the current source array.Source§fn copy_rows_by_selection(
&mut self,
selection: FilterSelection<'_>,
) -> Result<(), ArrowError>
fn copy_rows_by_selection( &mut self, selection: FilterSelection<'_>, ) -> Result<(), ArrowError>
Copy rows described by a
FilterSelection from the current source array.Auto Trait Implementations§
impl !RefUnwindSafe for GenericInProgressArray
impl !UnwindSafe for GenericInProgressArray
impl Freeze for GenericInProgressArray
impl Send for GenericInProgressArray
impl Sync for GenericInProgressArray
impl Unpin for GenericInProgressArray
impl UnsafeUnpin for GenericInProgressArray
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