pub(crate) struct InProgressListArray {
source: Option<ArrayRef>,
data_type: DataType,
buffered_arrays: Vec<ArrayRef>,
sparse_sources: Vec<ArrayRef>,
sparse_indices: Vec<(usize, usize)>,
sparse_source_bytes: usize,
source_data_referenced_in_buffers: bool,
total_size_of_non_shared_buffers: usize,
}Fields§
§source: Option<ArrayRef>The current source for contiguous row copies.
data_type: DataTypeThe output array type, either List or LargeList.
buffered_arrays: Vec<ArrayRef>Materialized sparse groups and contiguous source slices in output order.
sparse_sources: Vec<ArrayRef>Source arrays retained until the next sparse interleave.
sparse_indices: Vec<(usize, usize)>Selected (source index, row index) pairs for sparse_sources.
sparse_source_bytes: usizeTotal memory size reported by the retained sparse sources.
source_data_referenced_in_buffers: boolWhether buffered slices reference the current source’s data.
Memory retained by buffered arrays that is not counted by source.
Implementations§
Source§impl InProgressListArray
impl InProgressListArray
pub(crate) fn new(data_type: DataType) -> Self
fn sparse_limit_reached(&self) -> bool
fn flush_sparse(&mut self) -> Result<(), ArrowError>
Trait Implementations§
Source§impl Debug for InProgressListArray
impl Debug for InProgressListArray
Source§impl InProgressArray for InProgressListArray
impl InProgressArray for InProgressListArray
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>
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. Read moreSource§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. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for InProgressListArray
impl !UnwindSafe for InProgressListArray
impl Forget for InProgressListArray
impl Freeze for InProgressListArray
impl Move for InProgressListArray
impl Send for InProgressListArray
impl Sync for InProgressListArray
impl Unpin for InProgressListArray
impl UnsafeUnpin for InProgressListArray
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