Struct arrow2::array::MutableFixedSizeBinaryArray [−][src]
pub struct MutableFixedSizeBinaryArray { /* fields omitted */ }Expand description
The Arrow’s equivalent to a mutable Vec<Option<[u8; size]>>.
Converting a MutableFixedSizeBinaryArray into a FixedSizeBinaryArray is O(1).
Implementation
This struct does not allocate a validity until one is required (i.e. push a null to it).
Implementations
pub fn iter(
&'a self
) -> ZipValidity<'a, &'a [u8], FixedSizeBinaryValuesIter<'a, MutableFixedSizeBinaryArray>>ⓘNotable traits for ZipValidity<'a, T, I>impl<'a, T, I: Iterator<Item = T>> Iterator for ZipValidity<'a, T, I> type Item = Option<T>;
pub fn iter(
&'a self
) -> ZipValidity<'a, &'a [u8], FixedSizeBinaryValuesIter<'a, MutableFixedSizeBinaryArray>>ⓘNotable traits for ZipValidity<'a, T, I>impl<'a, T, I: Iterator<Item = T>> Iterator for ZipValidity<'a, T, I> type Item = Option<T>;
impl<'a, T, I: Iterator<Item = T>> Iterator for ZipValidity<'a, T, I> type Item = Option<T>;constructs a new iterator
pub fn from_data(
data_type: DataType,
values: MutableBuffer<u8>,
validity: Option<MutableBitmap>
) -> Self
pub fn from_data(
data_type: DataType,
values: MutableBuffer<u8>,
validity: Option<MutableBitmap>
) -> Self
Canonical method to create a new MutableFixedSizeBinaryArray.
Creates a new empty MutableFixedSizeBinaryArray.
Creates a new MutableFixedSizeBinaryArray with capacity for capacity entries.
tries to push a new entry to MutableFixedSizeBinaryArray.
Error
Errors iff the size of value is not equal to its own size.
pushes a new entry to MutableFixedSizeBinaryArray.
Panics
Panics iff the size of value is not equal to its own size.
pub fn try_from_iter<P: AsRef<[u8]>, I: IntoIterator<Item = Option<P>>>(
iter: I,
size: usize
) -> Result<Self>
pub fn try_from_iter<P: AsRef<[u8]>, I: IntoIterator<Item = Option<P>>>(
iter: I,
size: usize
) -> Result<Self>
Creates a new MutableFixedSizeBinaryArray from an iterator of values.
Errors
Errors iff the size of any of the value is not equal to its own size.
Accessors
Returns its values.
Returns a mutable slice of values.
Trait Implementations
Performs the conversion.
type IntoIter = ZipValidity<'a, &'a [u8], FixedSizeBinaryValuesIter<'a, MutableFixedSizeBinaryArray>>
type IntoIter = ZipValidity<'a, &'a [u8], FixedSizeBinaryValuesIter<'a, MutableFixedSizeBinaryArray>>
Which kind of iterator are we turning this into?
The optional validity of the array.
Convert to mutable Any, to enable dynamic casting.