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: Int32Builder
Implementations§
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 RefUnwindSafe for SqlInfoUnionBuilder
impl Send for SqlInfoUnionBuilder
impl Sync for SqlInfoUnionBuilder
impl Unpin for SqlInfoUnionBuilder
impl UnwindSafe for SqlInfoUnionBuilder
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
§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
].