pub type GenericBinaryArray<OffsetSize> = GenericByteArray<GenericBinaryType<OffsetSize>>;
Expand description
A GenericBinaryArray
for storing [u8]
Aliased Type§
struct GenericBinaryArray<OffsetSize> {
data_type: DataType,
value_offsets: OffsetBuffer<<GenericBinaryType<OffsetSize> as ByteArrayType>::Offset>,
value_data: Buffer,
nulls: Option<NullBuffer>,
}
Fields§
§data_type: DataType
§value_offsets: OffsetBuffer<<GenericBinaryType<OffsetSize> as ByteArrayType>::Offset>
§value_data: Buffer
§nulls: Option<NullBuffer>
Implementations§
Source§impl<OffsetSize: OffsetSizeTrait> GenericBinaryArray<OffsetSize>
impl<OffsetSize: OffsetSizeTrait> GenericBinaryArray<OffsetSize>
Sourcepub const fn get_data_type() -> DataType
👎Deprecated: please use Self::DATA_TYPE
instead
pub const fn get_data_type() -> DataType
Self::DATA_TYPE
insteadGet the data type of the array.
Sourcepub fn from_vec(v: Vec<&[u8]>) -> Self
pub fn from_vec(v: Vec<&[u8]>) -> Self
Creates a GenericBinaryArray from a vector of byte slices
See also Self::from_iter_values
Sourcepub fn from_opt_vec(v: Vec<Option<&[u8]>>) -> Self
pub fn from_opt_vec(v: Vec<Option<&[u8]>>) -> Self
Creates a GenericBinaryArray from a vector of Optional (null) byte slices
fn from_list(v: GenericListArray<OffsetSize>) -> Self
Sourcepub fn take_iter<'a>(
&'a self,
indexes: impl Iterator<Item = Option<usize>> + 'a,
) -> impl Iterator<Item = Option<&'a [u8]>>
pub fn take_iter<'a>( &'a self, indexes: impl Iterator<Item = Option<usize>> + 'a, ) -> impl Iterator<Item = Option<&'a [u8]>>
Returns an iterator that returns the values of array.value(i)
for an iterator with each element i
Sourcepub unsafe fn take_iter_unchecked<'a>(
&'a self,
indexes: impl Iterator<Item = Option<usize>> + 'a,
) -> impl Iterator<Item = Option<&'a [u8]>>
pub unsafe fn take_iter_unchecked<'a>( &'a self, indexes: impl Iterator<Item = Option<usize>> + 'a, ) -> impl Iterator<Item = Option<&'a [u8]>>
Returns an iterator that returns the values of array.value(i)
for an iterator with each element i
§Safety
caller must ensure that the indexes in the iterator are less than the array.len()
Trait Implementations§
Source§impl<OffsetSize: OffsetSizeTrait> From<GenericByteArray<GenericStringType<OffsetSize>>> for GenericBinaryArray<OffsetSize>
impl<OffsetSize: OffsetSizeTrait> From<GenericByteArray<GenericStringType<OffsetSize>>> for GenericBinaryArray<OffsetSize>
Source§fn from(value: GenericStringArray<OffsetSize>) -> Self
fn from(value: GenericStringArray<OffsetSize>) -> Self
Converts to this type from the input type.
Source§impl<T: OffsetSizeTrait> From<GenericListArray<T>> for GenericBinaryArray<T>
impl<T: OffsetSizeTrait> From<GenericListArray<T>> for GenericBinaryArray<T>
Source§fn from(v: GenericListArray<T>) -> Self
fn from(v: GenericListArray<T>) -> Self
Converts to this type from the input type.