pub(crate) struct DictionaryArrowToVariantBuilder<'a> {
keys: &'a dyn Array,
normalized_keys: Vec<usize>,
values_builder: Box<ArrowToVariantRowBuilder<'a>>,
}
Expand description
Dictionary array builder with simple O(1) indexing
Fields§
§keys: &'a dyn Array
§normalized_keys: Vec<usize>
§values_builder: Box<ArrowToVariantRowBuilder<'a>>
Implementations§
Source§impl<'a> DictionaryArrowToVariantBuilder<'a>
impl<'a> DictionaryArrowToVariantBuilder<'a>
pub(crate) fn new( array: &'a dyn Array, options: &'a CastOptions, ) -> Result<Self, ArrowError>
fn append_row( &mut self, builder: &mut impl VariantBuilderExt, index: usize, ) -> Result<(), ArrowError>
Auto Trait Implementations§
impl<'a> Freeze for DictionaryArrowToVariantBuilder<'a>
impl<'a> !RefUnwindSafe for DictionaryArrowToVariantBuilder<'a>
impl<'a> Send for DictionaryArrowToVariantBuilder<'a>
impl<'a> Sync for DictionaryArrowToVariantBuilder<'a>
impl<'a> Unpin for DictionaryArrowToVariantBuilder<'a>
impl<'a> !UnwindSafe for DictionaryArrowToVariantBuilder<'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