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 supports_dense_indexed_copy(&self) -> bool
fn supports_dense_indexed_copy(&self) -> bool
Returns true if this implementation supports dense indexed copying.
Source§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 InProgressListArraywhere
*const ArcInner<dyn Array> is !null: Freeze,
PhantomData<ArcInner<dyn Array>>: Freeze,
*const ArcInner<str> is !null: Freeze,
PhantomData<ArcInner<str>>: Freeze,
*const ArcInner<Field> is !null: Freeze,
PhantomData<ArcInner<Field>>: Freeze,
*const ArcInner<[Arc<Field>]> is !null: Freeze,
PhantomData<ArcInner<[Arc<Field>]>>: Freeze,
*const ArcInner<[(i8, Arc<Field>)]> is !null: Freeze,
PhantomData<ArcInner<[(i8, Arc<Field>)]>>: Freeze,
*const DataType is !null: Freeze,
PhantomData<DataType>: Freeze,
*const u8 is !null: Freeze,
PhantomData<Arc<dyn Array>>: Freeze,
PhantomData<(usize, usize)>: Freeze,
impl Move for InProgressListArray
impl Send for InProgressListArray
impl Sync for InProgressListArray
impl Unpin for InProgressListArray
impl UnsafeUnpin for InProgressListArraywhere
*const ArcInner<dyn Array> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Array>>: UnsafeUnpin,
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
*const ArcInner<Field> is !null: UnsafeUnpin,
PhantomData<ArcInner<Field>>: UnsafeUnpin,
*const ArcInner<[Arc<Field>]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[Arc<Field>]>>: UnsafeUnpin,
*const ArcInner<[(i8, Arc<Field>)]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[(i8, Arc<Field>)]>>: UnsafeUnpin,
*const DataType is !null: UnsafeUnpin,
PhantomData<DataType>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<Arc<dyn Array>>: UnsafeUnpin,
PhantomData<(usize, usize)>: UnsafeUnpin,
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