struct SqlInfoUnionBuilder {
string_values: StringBuilder,
bool_values: BooleanBuilder,
bigint_values: Int64Builder,
int32_bitmask_values: Int32Builder,
string_list_values: ListBuilder<StringBuilder>,
int32_to_int32_list_map_values: MapBuilder<Int32Builder, ListBuilder<Int32Builder>>,
type_ids: Int8Builder,
offsets: Int32Builder,
}Expand description
Handles creating the dense UnionArray described by flightsql
incrementally build types/offset of the dense union. See Union Spec for details.
* value: dense_union<
* string_value: utf8,
* bool_value: bool,
* bigint_value: int64,
* int32_bitmask: int32,
* string_list: list<string_data: utf8>
* int32_to_int32_list_map: map<key: int32, value: list<$data$: int32>>
* >Fields§
§string_values: StringBuilder§bool_values: BooleanBuilder§bigint_values: Int64Builder§int32_bitmask_values: Int32Builder§string_list_values: ListBuilder<StringBuilder>§int32_to_int32_list_map_values: MapBuilder<Int32Builder, ListBuilder<Int32Builder>>§type_ids: Int8Builder§offsets: Int32BuilderImplementations§
Source§impl SqlInfoUnionBuilder
impl SqlInfoUnionBuilder
pub fn new() -> Self
Sourcepub fn append_value(&mut self, v: &SqlInfoValue) -> Result<()>
pub fn append_value(&mut self, v: &SqlInfoValue) -> Result<()>
Append the specified value to this builder
Sourcepub fn finish(self) -> UnionArray
pub fn finish(self) -> UnionArray
Complete the construction and build the UnionArray
Auto Trait Implementations§
impl !Freeze for SqlInfoUnionBuilder
impl Forget for SqlInfoUnionBuilder
impl Move for SqlInfoUnionBuilder
impl RefUnwindSafe for SqlInfoUnionBuilderwhere
i32: RefUnwindSafe,
Mutex<Option<Box<dyn MemoryReservation>>>: RefUnwindSafe,
i64: RefUnwindSafe,
Atomic<usize>: RefUnwindSafe,
i8: RefUnwindSafe,
impl Send for SqlInfoUnionBuilder
impl Sync for SqlInfoUnionBuilder
impl Unpin for SqlInfoUnionBuilder
impl UnsafeUnpin for SqlInfoUnionBuilderwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<i32>: UnsafeUnpin,
Align4<u32>: UnsafeUnpin,
Align1<u8>: UnsafeUnpin,
*const dyn MemoryReservation is !null: UnsafeUnpin,
PhantomData<dyn MemoryReservation>: UnsafeUnpin,
PhantomData<i64>: UnsafeUnpin,
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
*const ArcInner<Field> is !null: UnsafeUnpin,
PhantomData<ArcInner<Field>>: UnsafeUnpin,
*const ArcInner<[Arc<Field>]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[Arc<Field>]>>: UnsafeUnpin,
*const ArcInner<[(i8, Arc<Field>)]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[(i8, Arc<Field>)]>>: UnsafeUnpin,
*const DataType is !null: UnsafeUnpin,
PhantomData<DataType>: UnsafeUnpin,
PhantomData<i8>: UnsafeUnpin,
impl UnwindSafe for SqlInfoUnionBuilderwhere
RawVecInner: UnwindSafe,
i32: UnwindSafe,
NonNull<u8>: UnwindSafe,
Mutex<Option<Box<dyn MemoryReservation>>>: UnwindSafe,
i64: UnwindSafe,
Arc<str>: UnwindSafe,
Arc<Field>: UnwindSafe,
Arc<[Arc<Field>]>: UnwindSafe,
Arc<[(i8, Arc<Field>)]>: UnwindSafe,
BoxRaw<DataType>: UnwindSafe,
i8: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].