pub(crate) struct InProgressPrimitiveArray<T: ArrowPrimitiveType> {
source: Option<ArrayRef>,
batch_size: usize,
nulls: NullBufferBuilder,
current: Vec<T::Native>,
}
Expand description
InProgressArray for [PrimitiveArray
]
Fields§
§source: Option<ArrayRef>
The current source, if any
batch_size: usize
the target batch size (and thus size for views allocation)
nulls: NullBufferBuilder
In progress nulls
current: Vec<T::Native>
The currently in progress array
Implementations§
Source§impl<T: ArrowPrimitiveType> InProgressPrimitiveArray<T>
impl<T: ArrowPrimitiveType> InProgressPrimitiveArray<T>
Sourcefn ensure_capacity(&mut self)
fn ensure_capacity(&mut self)
Allocate space for output values if necessary.
This is done on write (when we know it is necessary) rather than eagerly to avoid allocations that are not used.
Trait Implementations§
Source§impl<T: Debug + ArrowPrimitiveType> Debug for InProgressPrimitiveArray<T>where
T::Native: Debug,
impl<T: Debug + ArrowPrimitiveType> Debug for InProgressPrimitiveArray<T>where
T::Native: Debug,
Source§impl<T: ArrowPrimitiveType + Debug> InProgressArray for InProgressPrimitiveArray<T>
impl<T: ArrowPrimitiveType + Debug> InProgressArray for InProgressPrimitiveArray<T>
Auto Trait Implementations§
impl<T> Freeze for InProgressPrimitiveArray<T>
impl<T> !RefUnwindSafe for InProgressPrimitiveArray<T>
impl<T> Send for InProgressPrimitiveArray<T>
impl<T> Sync for InProgressPrimitiveArray<T>
impl<T> Unpin for InProgressPrimitiveArray<T>where
<T as ArrowPrimitiveType>::Native: Unpin,
impl<T> !UnwindSafe for InProgressPrimitiveArray<T>
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