pub struct List<T>(/* private fields */);Expand description
Wrapper denoting an Arrow ListArray column with elements of T.
Notes:
- List-level nullability: wrap the column in
Option<List<T>>. - Item-level nullability: use
List<Option<T>>when elements can be null.
Implementations§
Trait Implementations§
Source§impl<T> ArrowBinding for List<Option<T>>
Provide ArrowBinding for List<Option<T>> so users can express
item-nullability via Option in the type parameter.
impl<T> ArrowBinding for List<Option<T>>
Provide ArrowBinding for List<Option<T>> so users can express
item-nullability via Option in the type parameter.
Source§type Builder = GenericListBuilder<i32, <T as ArrowBinding>::Builder>
type Builder = GenericListBuilder<i32, <T as ArrowBinding>::Builder>
Concrete Arrow builder type used for this Rust type.
Source§type Array = GenericListArray<i32>
type Array = GenericListArray<i32>
Concrete Arrow array type produced by
finish.Source§fn new_builder(_capacity: usize) -> Self::Builder
fn new_builder(_capacity: usize) -> Self::Builder
Create a new builder with an optional capacity hint.
Source§fn append_value(b: &mut Self::Builder, v: &Self)
fn append_value(b: &mut Self::Builder, v: &Self)
Append a non-null value to the builder.
Source§fn append_null(b: &mut Self::Builder)
fn append_null(b: &mut Self::Builder)
Append a null to the builder.
Source§fn finish(b: Self::Builder) -> Self::Array
fn finish(b: Self::Builder) -> Self::Array
Finish the builder and produce a typed Arrow array.
Source§fn estimated_bytes_per_value() -> usize
fn estimated_bytes_per_value() -> usize
Estimated bytes per value for variable-length types (String, Binary, etc.).
Returns 0 for fixed-size types. Used to pre-allocate buffer space.
Source§impl<T> ArrowBinding for List<T>
impl<T> ArrowBinding for List<T>
Source§type Builder = GenericListBuilder<i32, <T as ArrowBinding>::Builder>
type Builder = GenericListBuilder<i32, <T as ArrowBinding>::Builder>
Concrete Arrow builder type used for this Rust type.
Source§type Array = GenericListArray<i32>
type Array = GenericListArray<i32>
Concrete Arrow array type produced by
finish.Source§fn new_builder(_capacity: usize) -> Self::Builder
fn new_builder(_capacity: usize) -> Self::Builder
Create a new builder with an optional capacity hint.
Source§fn append_value(b: &mut Self::Builder, v: &Self)
fn append_value(b: &mut Self::Builder, v: &Self)
Append a non-null value to the builder.
Source§fn append_null(b: &mut Self::Builder)
fn append_null(b: &mut Self::Builder)
Append a null to the builder.
Source§fn finish(b: Self::Builder) -> Self::Array
fn finish(b: Self::Builder) -> Self::Array
Finish the builder and produce a typed Arrow array.
Source§fn estimated_bytes_per_value() -> usize
fn estimated_bytes_per_value() -> usize
Estimated bytes per value for variable-length types (String, Binary, etc.).
Returns 0 for fixed-size types. Used to pre-allocate buffer space.
Source§impl<T> ArrowBindingView for List<Option<T>>where
T: ArrowBinding + ArrowBindingView + 'static,
Available on crate feature views only.
impl<T> ArrowBindingView for List<Option<T>>where
T: ArrowBinding + ArrowBindingView + 'static,
Available on crate feature
views only.Source§impl<T> ArrowBindingView for List<T>where
T: ArrowBinding + ArrowBindingView + 'static,
Available on crate feature views only.
impl<T> ArrowBindingView for List<T>where
T: ArrowBinding + ArrowBindingView + 'static,
Available on crate feature
views only.Source§impl<T> FromIterator<T> for List<T>
impl<T> FromIterator<T> for List<T>
Source§fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
Collect an iterator into a List<T>.
Auto Trait Implementations§
impl<T> Freeze for List<T>
impl<T> RefUnwindSafe for List<T>where
T: RefUnwindSafe,
impl<T> Send for List<T>where
T: Send,
impl<T> Sync for List<T>where
T: Sync,
impl<T> Unpin for List<T>where
T: Unpin,
impl<T> UnwindSafe for List<T>where
T: UnwindSafe,
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