Skip to main content

UnshredVariantRowBuilder

Enum UnshredVariantRowBuilder 

Source
enum UnshredVariantRowBuilder<'a> {
Show 28 variants PrimitiveInt8(UnshredPrimitiveRowBuilder<'a, PrimitiveArray<Int8Type>>), PrimitiveInt16(UnshredPrimitiveRowBuilder<'a, PrimitiveArray<Int16Type>>), PrimitiveInt32(UnshredPrimitiveRowBuilder<'a, PrimitiveArray<Int32Type>>), PrimitiveInt64(UnshredPrimitiveRowBuilder<'a, PrimitiveArray<Int64Type>>), PrimitiveFloat32(UnshredPrimitiveRowBuilder<'a, PrimitiveArray<Float32Type>>), PrimitiveFloat64(UnshredPrimitiveRowBuilder<'a, PrimitiveArray<Float64Type>>), Decimal32(DecimalUnshredRowBuilder<'a, Decimal32Type, VariantDecimal4>), Decimal64(DecimalUnshredRowBuilder<'a, Decimal64Type, VariantDecimal8>), Decimal128(DecimalUnshredRowBuilder<'a, Decimal128Type, VariantDecimal16>), PrimitiveDate32(UnshredPrimitiveRowBuilder<'a, PrimitiveArray<Date32Type>>), PrimitiveTime64(UnshredPrimitiveRowBuilder<'a, PrimitiveArray<Time64MicrosecondType>>), TimestampMicrosecond(TimestampUnshredRowBuilder<'a, TimestampMicrosecondType>), TimestampNanosecond(TimestampUnshredRowBuilder<'a, TimestampNanosecondType>), PrimitiveBoolean(UnshredPrimitiveRowBuilder<'a, BooleanArray>), PrimitiveString(UnshredPrimitiveRowBuilder<'a, StringArray>), PrimitiveStringView(UnshredPrimitiveRowBuilder<'a, StringViewArray>), PrimitiveLargeString(UnshredPrimitiveRowBuilder<'a, LargeStringArray>), PrimitiveBinary(UnshredPrimitiveRowBuilder<'a, BinaryArray>), PrimitiveBinaryView(UnshredPrimitiveRowBuilder<'a, BinaryViewArray>), PrimitiveLargeBinary(UnshredPrimitiveRowBuilder<'a, LargeBinaryArray>), PrimitiveUuid(UnshredPrimitiveRowBuilder<'a, FixedSizeBinaryArray>), List(ListUnshredVariantBuilder<'a, GenericListArray<i32>>), LargeList(ListUnshredVariantBuilder<'a, GenericListArray<i64>>), ListView(ListUnshredVariantBuilder<'a, GenericListViewArray<i32>>), LargeListView(ListUnshredVariantBuilder<'a, GenericListViewArray<i64>>), Struct(StructUnshredVariantBuilder<'a>), ValueOnly(ValueOnlyUnshredVariantBuilder<'a>), Null(NullUnshredVariantBuilder),
}
Expand description

Row builder for converting shredded VariantArray rows back to unshredded form

Variants§

§

PrimitiveInt8(UnshredPrimitiveRowBuilder<'a, PrimitiveArray<Int8Type>>)

§

PrimitiveInt16(UnshredPrimitiveRowBuilder<'a, PrimitiveArray<Int16Type>>)

§

PrimitiveInt32(UnshredPrimitiveRowBuilder<'a, PrimitiveArray<Int32Type>>)

§

PrimitiveInt64(UnshredPrimitiveRowBuilder<'a, PrimitiveArray<Int64Type>>)

§

PrimitiveFloat32(UnshredPrimitiveRowBuilder<'a, PrimitiveArray<Float32Type>>)

§

PrimitiveFloat64(UnshredPrimitiveRowBuilder<'a, PrimitiveArray<Float64Type>>)

§

Decimal32(DecimalUnshredRowBuilder<'a, Decimal32Type, VariantDecimal4>)

§

Decimal64(DecimalUnshredRowBuilder<'a, Decimal64Type, VariantDecimal8>)

§

Decimal128(DecimalUnshredRowBuilder<'a, Decimal128Type, VariantDecimal16>)

§

PrimitiveDate32(UnshredPrimitiveRowBuilder<'a, PrimitiveArray<Date32Type>>)

§

PrimitiveTime64(UnshredPrimitiveRowBuilder<'a, PrimitiveArray<Time64MicrosecondType>>)

§

TimestampMicrosecond(TimestampUnshredRowBuilder<'a, TimestampMicrosecondType>)

§

TimestampNanosecond(TimestampUnshredRowBuilder<'a, TimestampNanosecondType>)

§

PrimitiveBoolean(UnshredPrimitiveRowBuilder<'a, BooleanArray>)

§

PrimitiveString(UnshredPrimitiveRowBuilder<'a, StringArray>)

§

PrimitiveStringView(UnshredPrimitiveRowBuilder<'a, StringViewArray>)

§

PrimitiveLargeString(UnshredPrimitiveRowBuilder<'a, LargeStringArray>)

§

PrimitiveBinary(UnshredPrimitiveRowBuilder<'a, BinaryArray>)

§

PrimitiveBinaryView(UnshredPrimitiveRowBuilder<'a, BinaryViewArray>)

§

PrimitiveLargeBinary(UnshredPrimitiveRowBuilder<'a, LargeBinaryArray>)

§

PrimitiveUuid(UnshredPrimitiveRowBuilder<'a, FixedSizeBinaryArray>)

§

List(ListUnshredVariantBuilder<'a, GenericListArray<i32>>)

§

LargeList(ListUnshredVariantBuilder<'a, GenericListArray<i64>>)

§

ListView(ListUnshredVariantBuilder<'a, GenericListViewArray<i32>>)

§

LargeListView(ListUnshredVariantBuilder<'a, GenericListViewArray<i64>>)

§

Struct(StructUnshredVariantBuilder<'a>)

§

ValueOnly(ValueOnlyUnshredVariantBuilder<'a>)

§

Null(NullUnshredVariantBuilder)

Implementations§

Source§

impl<'a> UnshredVariantRowBuilder<'a>

Source

fn null() -> Self

Creates an all-null row builder.

Source

fn append_row( &mut self, builder: &mut impl VariantBuilderExt, metadata: &VariantMetadata<'_>, index: usize, ) -> Result<()>

Appends a single row at the given value index to the supplied builder.

Source

fn try_new_opt(inner_struct: &'a StructArray) -> Result<Option<Self>>

Creates a new UnshredVariantRowBuilder from the (value, typed_value) pair of a shredded variant struct. Returns None for the None/None case - caller decides how to handle based on context.

Auto Trait Implementations§

§

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

§

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

§

impl<'a> Forget for UnshredVariantRowBuilder<'a>

§

impl<'a> Freeze for UnshredVariantRowBuilder<'a>
where &'a Arc<dyn Array>: Freeze, &'a PrimitiveArray<Int8Type>: Freeze, &'a PrimitiveArray<Int16Type>: Freeze, &'a PrimitiveArray<Int32Type>: Freeze, &'a PrimitiveArray<Int64Type>: Freeze, &'a PrimitiveArray<Float32Type>: Freeze, &'a PrimitiveArray<Float64Type>: Freeze, &'a PrimitiveArray<Decimal32Type>: Freeze, PhantomData<VariantDecimal4>: Freeze, &'a PrimitiveArray<Decimal64Type>: Freeze, PhantomData<VariantDecimal8>: Freeze, &'a PrimitiveArray<Decimal128Type>: Freeze, PhantomData<VariantDecimal16>: Freeze, &'a PrimitiveArray<Date32Type>: Freeze, &'a PrimitiveArray<Time64MicrosecondType>: Freeze, &'a PrimitiveArray<TimestampMicrosecondType>: Freeze, &'a PrimitiveArray<TimestampNanosecondType>: Freeze, &'a BooleanArray: Freeze, &'a GenericByteArray<GenericStringType<i32>>: Freeze, &'a GenericByteViewArray<StringViewType>: Freeze, &'a GenericByteArray<GenericStringType<i64>>: Freeze, &'a GenericByteArray<GenericBinaryType<i32>>: Freeze, &'a GenericByteViewArray<BinaryViewType>: Freeze, &'a GenericByteArray<GenericBinaryType<i64>>: Freeze, &'a FixedSizeBinaryArray: Freeze, &'a GenericListArray<i32>: Freeze, *const UnshredVariantRowBuilder<'a> is !null: Freeze, PhantomData<UnshredVariantRowBuilder<'a>>: Freeze, &'a GenericListArray<i64>: Freeze, &'a GenericListViewArray<i32>: Freeze, &'a GenericListViewArray<i64>: Freeze, &'a StructArray: Freeze, *const u8 is !null: Freeze, PhantomData<usize>: Freeze, PhantomData<Bucket<&'a str, Option<UnshredVariantRowBuilder<'a>>>>: Freeze,

§

impl<'a> Move for UnshredVariantRowBuilder<'a>

§

impl<'a> Send for UnshredVariantRowBuilder<'a>
where &'a Arc<dyn Array>: Send, &'a PrimitiveArray<Int8Type>: Send, &'a PrimitiveArray<Int16Type>: Send, &'a PrimitiveArray<Int32Type>: Send, &'a PrimitiveArray<Int64Type>: Send, &'a PrimitiveArray<Float32Type>: Send, &'a PrimitiveArray<Float64Type>: Send, &'a PrimitiveArray<Decimal32Type>: Send, &'a PrimitiveArray<Decimal64Type>: Send, &'a PrimitiveArray<Decimal128Type>: Send, &'a PrimitiveArray<Date32Type>: Send, &'a PrimitiveArray<Time64MicrosecondType>: Send, &'a PrimitiveArray<TimestampMicrosecondType>: Send, &'a PrimitiveArray<TimestampNanosecondType>: Send, &'a BooleanArray: Send, &'a GenericByteArray<GenericStringType<i32>>: Send, &'a GenericByteViewArray<StringViewType>: Send, &'a GenericByteArray<GenericStringType<i64>>: Send, &'a GenericByteArray<GenericBinaryType<i32>>: Send, &'a GenericByteViewArray<BinaryViewType>: Send, &'a GenericByteArray<GenericBinaryType<i64>>: Send, &'a FixedSizeBinaryArray: Send, &'a GenericListArray<i32>: Send, BoxRaw<UnshredVariantRowBuilder<'a>>: Send, &'a GenericListArray<i64>: Send, &'a GenericListViewArray<i32>: Send, &'a GenericListViewArray<i64>: Send, &'a StructArray: Send, RawTable<usize>: Send, RawVecInner: Send, &'a str: Send,

§

impl<'a> Sync for UnshredVariantRowBuilder<'a>
where Arc<dyn Array>: Sync, Arc<str>: Sync, Arc<Field>: Sync, Arc<[Arc<Field>]>: Sync, Arc<[(i8, Arc<Field>)]>: Sync, BoxRaw<DataType>: Sync, Buffer: Sync, i8: Sync, i16: Sync, i32: Sync, i64: Sync, f32: Sync, f64: Sync, i128: Sync, Arc<[Buffer]>: Sync, BoxRaw<UnshredVariantRowBuilder<'a>>: Sync, RawVecInner: Sync, RawTable<usize>: Sync,

§

impl<'a> Unpin for UnshredVariantRowBuilder<'a>
where &'a Arc<dyn Array>: Unpin, &'a PrimitiveArray<Int8Type>: Unpin, &'a PrimitiveArray<Int16Type>: Unpin, &'a PrimitiveArray<Int32Type>: Unpin, &'a PrimitiveArray<Int64Type>: Unpin, &'a PrimitiveArray<Float32Type>: Unpin, &'a PrimitiveArray<Float64Type>: Unpin, &'a PrimitiveArray<Decimal32Type>: Unpin, &'a PrimitiveArray<Decimal64Type>: Unpin, &'a PrimitiveArray<Decimal128Type>: Unpin, &'a PrimitiveArray<Date32Type>: Unpin, &'a PrimitiveArray<Time64MicrosecondType>: Unpin, &'a PrimitiveArray<TimestampMicrosecondType>: Unpin, &'a PrimitiveArray<TimestampNanosecondType>: Unpin, &'a BooleanArray: Unpin, &'a GenericByteArray<GenericStringType<i32>>: Unpin, &'a GenericByteViewArray<StringViewType>: Unpin, &'a GenericByteArray<GenericStringType<i64>>: Unpin, &'a GenericByteArray<GenericBinaryType<i32>>: Unpin, &'a GenericByteViewArray<BinaryViewType>: Unpin, &'a GenericByteArray<GenericBinaryType<i64>>: Unpin, &'a FixedSizeBinaryArray: Unpin, &'a GenericListArray<i32>: Unpin, Box<UnshredVariantRowBuilder<'a>>: Unpin, &'a GenericListArray<i64>: Unpin, &'a GenericListViewArray<i32>: Unpin, &'a GenericListViewArray<i64>: Unpin, &'a StructArray: Unpin, *const u8 is !null: Unpin, &'a str: Unpin,

§

impl<'a> UnsafeUnpin for UnshredVariantRowBuilder<'a>
where &'a Arc<dyn Array>: UnsafeUnpin, &'a PrimitiveArray<Int8Type>: UnsafeUnpin, &'a PrimitiveArray<Int16Type>: UnsafeUnpin, &'a PrimitiveArray<Int32Type>: UnsafeUnpin, &'a PrimitiveArray<Int64Type>: UnsafeUnpin, &'a PrimitiveArray<Float32Type>: UnsafeUnpin, &'a PrimitiveArray<Float64Type>: UnsafeUnpin, &'a PrimitiveArray<Decimal32Type>: UnsafeUnpin, PhantomData<VariantDecimal4>: UnsafeUnpin, &'a PrimitiveArray<Decimal64Type>: UnsafeUnpin, PhantomData<VariantDecimal8>: UnsafeUnpin, &'a PrimitiveArray<Decimal128Type>: UnsafeUnpin, PhantomData<VariantDecimal16>: UnsafeUnpin, &'a PrimitiveArray<Date32Type>: UnsafeUnpin, &'a PrimitiveArray<Time64MicrosecondType>: UnsafeUnpin, &'a PrimitiveArray<TimestampMicrosecondType>: UnsafeUnpin, &'a PrimitiveArray<TimestampNanosecondType>: UnsafeUnpin, &'a BooleanArray: UnsafeUnpin, &'a GenericByteArray<GenericStringType<i32>>: UnsafeUnpin, &'a GenericByteViewArray<StringViewType>: UnsafeUnpin, &'a GenericByteArray<GenericStringType<i64>>: UnsafeUnpin, &'a GenericByteArray<GenericBinaryType<i32>>: UnsafeUnpin, &'a GenericByteViewArray<BinaryViewType>: UnsafeUnpin, &'a GenericByteArray<GenericBinaryType<i64>>: UnsafeUnpin, &'a FixedSizeBinaryArray: UnsafeUnpin, &'a GenericListArray<i32>: UnsafeUnpin, *const UnshredVariantRowBuilder<'a> is !null: UnsafeUnpin, PhantomData<UnshredVariantRowBuilder<'a>>: UnsafeUnpin, &'a GenericListArray<i64>: UnsafeUnpin, &'a GenericListViewArray<i32>: UnsafeUnpin, &'a GenericListViewArray<i64>: UnsafeUnpin, &'a StructArray: UnsafeUnpin, *const u8 is !null: UnsafeUnpin, PhantomData<usize>: UnsafeUnpin, PhantomData<Bucket<&'a str, Option<UnshredVariantRowBuilder<'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,