Skip to main content

StructArrowToVariantBuilder

Struct StructArrowToVariantBuilder 

Source
pub(crate) struct StructArrowToVariantBuilder<'a> {
    struct_array: &'a StructArray,
    field_builders: Vec<(&'a str, ArrowToVariantRowBuilder<'a>)>,
}
Expand description

Struct builder for StructArray

Fields§

§struct_array: &'a StructArray§field_builders: Vec<(&'a str, ArrowToVariantRowBuilder<'a>)>

Implementations§

Source§

impl<'a> StructArrowToVariantBuilder<'a>

Source

pub(crate) fn new( struct_array: &'a StructArray, options: &'a CastOptions<'_>, ) -> Result<Self, ArrowError>

Source

fn append_row( &mut self, builder: &mut impl VariantBuilderExt, index: usize, ) -> Result<(), ArrowError>

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for StructArrowToVariantBuilder<'a>

§

impl<'a> !UnwindSafe for StructArrowToVariantBuilder<'a>

§

impl<'a> Forget for StructArrowToVariantBuilder<'a>

§

impl<'a> Freeze for StructArrowToVariantBuilder<'a>
where &'a StructArray: Freeze, *const u8 is !null: Freeze, PhantomData<(&'a str, ArrowToVariantRowBuilder<'a>)>: Freeze,

§

impl<'a> Move for StructArrowToVariantBuilder<'a>

§

impl<'a> Send for StructArrowToVariantBuilder<'a>
where &'a StructArray: Send, RawVecInner: Send, &'a str: Send, &'a BooleanArray: Send, &'a PrimitiveArray<Int8Type>: Send, &'a PrimitiveArray<Int16Type>: Send, &'a PrimitiveArray<Int32Type>: Send, &'a PrimitiveArray<Int64Type>: Send, &'a PrimitiveArray<UInt8Type>: Send, &'a PrimitiveArray<UInt16Type>: Send, &'a PrimitiveArray<UInt32Type>: Send, &'a PrimitiveArray<UInt64Type>: Send, &'a PrimitiveArray<Float16Type>: Send, &'a PrimitiveArray<Float32Type>: Send, &'a PrimitiveArray<Float64Type>: Send, &'a PrimitiveArray<Decimal32Type>: Send, &'a CastOptions<'a>: Send, &'a PrimitiveArray<Decimal64Type>: Send, &'a PrimitiveArray<Decimal128Type>: Send, &'a PrimitiveArray<Decimal256Type>: Send, &'a PrimitiveArray<TimestampSecondType>: Send, &'a PrimitiveArray<TimestampMillisecondType>: Send, &'a PrimitiveArray<TimestampMicrosecondType>: Send, &'a PrimitiveArray<TimestampNanosecondType>: Send, &'a PrimitiveArray<Date32Type>: Send, &'a PrimitiveArray<Date64Type>: Send, &'a PrimitiveArray<Time32SecondType>: Send, &'a PrimitiveArray<Time32MillisecondType>: Send, &'a PrimitiveArray<Time64MicrosecondType>: Send, &'a PrimitiveArray<Time64NanosecondType>: Send, &'a GenericByteArray<GenericBinaryType<i32>>: Send, &'a GenericByteArray<GenericBinaryType<i64>>: Send, &'a GenericByteViewArray<BinaryViewType>: Send, &'a FixedSizeBinaryArray: Send, &'a GenericByteArray<GenericStringType<i32>>: Send, &'a GenericByteArray<GenericStringType<i64>>: Send, &'a GenericByteViewArray<StringViewType>: Send, &'a GenericListArray<i32>: Send, BoxRaw<ArrowToVariantRowBuilder<'a>>: Send, &'a GenericListArray<i64>: Send, &'a GenericListViewArray<i32>: Send, &'a GenericListViewArray<i64>: Send, &'a FixedSizeListArray: Send, &'a MapArray: Send, Arc<str>: Send, Arc<Field>: Send, Arc<[Arc<Field>]>: Send, Arc<[(i8, Arc<Field>)]>: Send, BoxRaw<DataType>: Send, Buffer: Send, i32: Send, &'a UnionArray: Send, RawTable<(i8, Box<ArrowToVariantRowBuilder<'a>>)>: Send, &'a dyn Array: Send, &'a RunArray<Int16Type>: Send, &'a [i16]: Send, &'a RunArray<Int32Type>: Send, &'a [i32]: Send, &'a RunArray<Int64Type>: Send, &'a [i64]: Send, Arc<dyn Array>: Send,

§

impl<'a> Sync for StructArrowToVariantBuilder<'a>
where Arc<str>: Sync, Arc<Field>: Sync, Arc<[Arc<Field>]>: Sync, Arc<[(i8, Arc<Field>)]>: Sync, BoxRaw<DataType>: Sync, Buffer: Sync, RawVecInner: Sync, Arc<dyn Array>: Sync, i8: Sync, i16: Sync, i32: Sync, i64: Sync, u8: Sync, u16: Sync, u32: Sync, u64: Sync, f16: Sync, f32: Sync, f64: Sync, i128: Sync, i256: Sync, Arc<[Buffer]>: Sync, BoxRaw<ArrowToVariantRowBuilder<'a>>: Sync, RawTable<(i8, Box<ArrowToVariantRowBuilder<'a>>)>: Sync,

§

impl<'a> Unpin for StructArrowToVariantBuilder<'a>
where &'a StructArray: Unpin, *const u8 is !null: Unpin, &'a str: Unpin, &'a BooleanArray: Unpin, &'a PrimitiveArray<Int8Type>: Unpin, &'a PrimitiveArray<Int16Type>: Unpin, &'a PrimitiveArray<Int32Type>: Unpin, &'a PrimitiveArray<Int64Type>: Unpin, &'a PrimitiveArray<UInt8Type>: Unpin, &'a PrimitiveArray<UInt16Type>: Unpin, &'a PrimitiveArray<UInt32Type>: Unpin, &'a PrimitiveArray<UInt64Type>: Unpin, &'a PrimitiveArray<Float16Type>: Unpin, &'a PrimitiveArray<Float32Type>: Unpin, &'a PrimitiveArray<Float64Type>: Unpin, &'a PrimitiveArray<Decimal32Type>: Unpin, &'a CastOptions<'a>: Unpin, &'a PrimitiveArray<Decimal64Type>: Unpin, &'a PrimitiveArray<Decimal128Type>: Unpin, &'a PrimitiveArray<Decimal256Type>: Unpin, &'a PrimitiveArray<TimestampSecondType>: Unpin, &'a PrimitiveArray<TimestampMillisecondType>: Unpin, &'a PrimitiveArray<TimestampMicrosecondType>: Unpin, &'a PrimitiveArray<TimestampNanosecondType>: Unpin, &'a PrimitiveArray<Date32Type>: Unpin, &'a PrimitiveArray<Date64Type>: Unpin, &'a PrimitiveArray<Time32SecondType>: Unpin, &'a PrimitiveArray<Time32MillisecondType>: Unpin, &'a PrimitiveArray<Time64MicrosecondType>: Unpin, &'a PrimitiveArray<Time64NanosecondType>: Unpin, &'a GenericByteArray<GenericBinaryType<i32>>: Unpin, &'a GenericByteArray<GenericBinaryType<i64>>: Unpin, &'a GenericByteViewArray<BinaryViewType>: Unpin, &'a FixedSizeBinaryArray: Unpin, &'a GenericByteArray<GenericStringType<i32>>: Unpin, &'a GenericByteArray<GenericStringType<i64>>: Unpin, &'a GenericByteViewArray<StringViewType>: Unpin, &'a GenericListArray<i32>: Unpin, Box<ArrowToVariantRowBuilder<'a>>: Unpin, &'a GenericListArray<i64>: Unpin, &'a GenericListViewArray<i32>: Unpin, &'a GenericListViewArray<i64>: Unpin, &'a FixedSizeListArray: Unpin, &'a MapArray: Unpin, Arc<str>: Unpin, Arc<Field>: Unpin, Arc<[Arc<Field>]>: Unpin, Arc<[(i8, Arc<Field>)]>: Unpin, Box<DataType>: Unpin, Arc<Bytes>: Unpin, *const u8: Unpin, i32: Unpin, &'a UnionArray: Unpin, &'a dyn Array: Unpin, &'a RunArray<Int16Type>: Unpin, &'a [i16]: Unpin, &'a RunArray<Int32Type>: Unpin, &'a [i32]: Unpin, &'a RunArray<Int64Type>: Unpin, &'a [i64]: Unpin, Arc<dyn Array>: Unpin,

§

impl<'a> UnsafeUnpin for StructArrowToVariantBuilder<'a>
where &'a StructArray: UnsafeUnpin, *const u8 is !null: UnsafeUnpin, PhantomData<(&'a str, ArrowToVariantRowBuilder<'a>)>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> Ungil for T
where T: Send,