Skip to main content

VariantToShreddedPrimitiveVariantRowBuilder

Struct VariantToShreddedPrimitiveVariantRowBuilder 

Source
pub(crate) struct VariantToShreddedPrimitiveVariantRowBuilder<'a> {
    value_builder: VariantValueArrayBuilder,
    typed_value_builder: PrimitiveVariantToArrowRowBuilder<'a>,
    nulls: NullBufferBuilder,
    null_value: NullValue,
}
Expand description

A shredded primitive field builder.

Fields§

§value_builder: VariantValueArrayBuilder§typed_value_builder: PrimitiveVariantToArrowRowBuilder<'a>§nulls: NullBufferBuilder§null_value: NullValue

Implementations§

Source§

impl<'a> VariantToShreddedPrimitiveVariantRowBuilder<'a>

Source

pub(crate) fn new( typed_value_builder: PrimitiveVariantToArrowRowBuilder<'a>, capacity: usize, null_value: NullValue, ) -> Self

Source

fn append_null(&mut self) -> Result<()>

Source

fn append_value(&mut self, value: Variant<'_, '_>) -> Result<bool>

Source

fn finish(self) -> Result<(BinaryViewArray, ArrayRef, Option<NullBuffer>)>

Auto Trait Implementations§

§

impl<'a> !Freeze for VariantToShreddedPrimitiveVariantRowBuilder<'a>

§

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

§

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

§

impl<'a> Forget for VariantToShreddedPrimitiveVariantRowBuilder<'a>

§

impl<'a> Move for VariantToShreddedPrimitiveVariantRowBuilder<'a>

§

impl<'a> Send for VariantToShreddedPrimitiveVariantRowBuilder<'a>
where RawVecInner: Send, MutableBuffer: Send, &'a CastOptions<'a>: Send, i8: Send, Arc<str>: Send, Arc<Field>: Send, Arc<[Arc<Field>]>: Send, Arc<[(i8, Arc<Field>)]>: Send, BoxRaw<DataType>: Send, i16: Send, i32: Send, i64: Send, u8: Send, u16: Send, u32: Send, u64: Send, f16: Send, f32: Send, f64: Send, i128: Send, i256: Send, Buffer: Send, RawTable<usize>: Send,

§

impl<'a> Sync for VariantToShreddedPrimitiveVariantRowBuilder<'a>
where RawVecInner: Sync, MutableBuffer: Sync, i8: Sync, Arc<str>: Sync, Arc<Field>: Sync, Arc<[Arc<Field>]>: Sync, Arc<[(i8, Arc<Field>)]>: Sync, BoxRaw<DataType>: 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, Buffer: Sync, RawTable<usize>: Sync,

§

impl<'a> Unpin for VariantToShreddedPrimitiveVariantRowBuilder<'a>
where *const u8 is !null: Unpin, Align4<u32>: Unpin, Align1<u8>: Unpin, Box<dyn MemoryReservation>: Unpin, &'a CastOptions<'a>: Unpin, i8: Unpin, Arc<str>: Unpin, Arc<Field>: Unpin, Arc<[Arc<Field>]>: Unpin, Arc<[(i8, Arc<Field>)]>: Unpin, Box<DataType>: Unpin, i16: Unpin, i32: Unpin, i64: Unpin, u8: Unpin, u16: Unpin, u32: Unpin, u64: Unpin, f16: Unpin, f32: Unpin, f64: Unpin, i128: Unpin, i256: Unpin, Arc<Bytes>: Unpin, *const u8: Unpin,

§

impl<'a> UnsafeUnpin for VariantToShreddedPrimitiveVariantRowBuilder<'a>

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,