pub fn to_arrow<I>(&self, keys: I, nulls: Option<Buffer>) -> DictionaryArray<Int32Type>
    where
        I: IntoIterator<Item = i32>,
        I::IntoIter: ExactSizeIterator,
    {
        let keys = keys.into_iter();
        let mut array_builder = ArrayDataBuilder::new(DataType::Dictionary(
            Box::new(DataType::Int32),
            Box::new(DataType::Utf8),
        ))
        .len(keys.len())
        .add_buffer(keys.collect())
        .add_child_data(self.storage.to_arrow().data().clone());

        if let Some(nulls) = nulls {
            array_builder = array_builder.null_bit_buffer(nulls);
        }

        DictionaryArray::<Int32Type>::from(array_builder.build())
    }
/// Convert to an arrow representation with the provided set of
/// keys and an optional null bitmask
Convert to an arrow representation with the provided set of
keys and an optional null bitmask
Convert to an arrow representation with the provided set of keys and an optional null bitmask
pub fn to_arrow<I>(&self, keys: I, nulls: Option<Buffer>) -> DictionaryArray<Int32Type>
    where
        I: IntoIterator<Item = i32>,
        I::IntoIter: ExactSizeIterator,
    {
        let keys = keys.into_iter();
        let mut array_builder = ArrayDataBuilder::new(DataType::Dictionary(
            Box::new(DataType::Int32),
            Box::new(DataType::Utf8),
        ))
        .len(keys.len())
        .add_buffer(keys.collect())
        .add_child_data(self.storage.to_arrow().data().clone());
        if let Some(nulls) = nulls {
            array_builder = array_builder.null_bit_buffer(nulls);
        }
        DictionaryArray::<Int32Type>::from(array_builder.build())
    }
pub fn to_arrow < I > ( & self , keys : I , nulls : Option < Buffer > ) -> DictionaryArray < Int32Type > where I : IntoIterator < Item = i32 > , I :: IntoIter : ExactSizeIterator , { let keys = keys . into_iter ( ) ; let mut array_builder = ArrayDataBuilder :: new ( DataType :: Dictionary ( Box :: new ( DataType :: Int32 ) , Box :: new ( DataType :: Utf8 ) , ) ) . len ( keys . len ( ) ) . add_buffer ( keys . collect ( ) ) . add_child_data ( self . storage . to_arrow ( ) . data ( ) . clone ( ) ) ; if let Some ( nulls ) = nulls { array_builder = array_builder . null_bit_buffer ( nulls ) ; } DictionaryArray :: < Int32Type > :: from ( array_builder . build ( ) ) }
Convert to an arrow representation with the provided set of
keys and an optional null bitmask
Convert to an arrow representation with the provided set of keys and an optional null bitmask
&self
keys
I
nulls
Option<Buffer>
&self
keys
I
nulls
Option<Buffer>