pub(crate) struct MapVariantToArrowRowBuilder<'a> {
entries_field: &'a FieldRef,
key_field: &'a FieldRef,
value_field: &'a FieldRef,
ordered: bool,
key_builder: Box<VariantToArrowRowBuilder<'a>>,
value_builder: Box<VariantToArrowRowBuilder<'a>>,
offsets: Vec<i32>,
current_offset: i32,
nulls: NullBufferBuilder,
cast_options: &'a CastOptions<'a>,
}Expand description
Builder for converting variant objects into Arrow MapArrays.
Each variant object field becomes one map entry: the field name is the map key and the field value is converted to the requested value type. Variant objects store their fields in lexicographic key order, so maps with string keys come out sorted by key.
Fields§
§entries_field: &'a FieldRef§key_field: &'a FieldRef§value_field: &'a FieldRef§ordered: bool§key_builder: Box<VariantToArrowRowBuilder<'a>>§value_builder: Box<VariantToArrowRowBuilder<'a>>§offsets: Vec<i32>§current_offset: i32§nulls: NullBufferBuilder§cast_options: &'a CastOptions<'a>Implementations§
Source§impl<'a> MapVariantToArrowRowBuilder<'a>
impl<'a> MapVariantToArrowRowBuilder<'a>
Auto Trait Implementations§
impl<'a> !Freeze for MapVariantToArrowRowBuilder<'a>
impl<'a> !RefUnwindSafe for MapVariantToArrowRowBuilder<'a>
impl<'a> !UnwindSafe for MapVariantToArrowRowBuilder<'a>
impl<'a> Send for MapVariantToArrowRowBuilder<'a>
impl<'a> Sync for MapVariantToArrowRowBuilder<'a>
impl<'a> Unpin for MapVariantToArrowRowBuilder<'a>
impl<'a> UnsafeUnpin for MapVariantToArrowRowBuilder<'a>
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