Struct arrow::array::FixedSizeBinaryArray [−][src]
pub struct FixedSizeBinaryArray { /* fields omitted */ }
A type of FixedSizeListArray
whose elements are binaries.
Implementations
impl FixedSizeBinaryArray
[src]
impl FixedSizeBinaryArray
[src]pub fn value(&self, i: usize) -> &[u8]ⓘ
[src]
Returns the element at index i
as a byte slice.
pub fn value_offset(&self, i: usize) -> i32
[src]
Returns the offset for the element at index i
.
Note this doesn’t do any bound checking, for performance reason.
pub fn value_length(&self) -> i32
[src]
Returns the length for an element.
All elements have the same length as the array is a fixed size.
pub fn value_data(&self) -> Buffer
[src]
Returns a clone of the value data buffer
pub fn try_from_sparse_iter<T, U>(iter: T) -> Result<Self, ArrowError> where
T: Iterator<Item = Option<U>>,
U: AsRef<[u8]>,
[src]
T: Iterator<Item = Option<U>>,
U: AsRef<[u8]>,
Create an array from an iterable argument of sparse byte slices.
Sparsity means that items returned by the iterator are optional, i.e input argument can
contain None
items.
Examles
use arrow::array::FixedSizeBinaryArray; let input_arg = vec![ None, Some(vec![7, 8]), Some(vec![9, 10]), None, Some(vec![13, 14]), None, ]; let array = FixedSizeBinaryArray::try_from_sparse_iter(input_arg.into_iter()).unwrap();
Errors
Returns error if argument has length zero, or sizes of nested slices don’t match.
pub fn try_from_iter<T, U>(iter: T) -> Result<Self, ArrowError> where
T: Iterator<Item = U>,
U: AsRef<[u8]>,
[src]
T: Iterator<Item = U>,
U: AsRef<[u8]>,
Create an array from an iterable argument of byte slices.
Examles
use arrow::array::FixedSizeBinaryArray; let input_arg = vec![ vec![1, 2], vec![3, 4], vec![5, 6], ]; let array = FixedSizeBinaryArray::try_from_iter(input_arg.into_iter()).unwrap();
Errors
Returns error if argument has length zero, or sizes of nested slices don’t match.
Trait Implementations
impl Array for FixedSizeBinaryArray
[src]
impl Array for FixedSizeBinaryArray
[src]fn as_any(&self) -> &dyn Any
[src]
fn data(&self) -> &ArrayData
[src]
fn get_buffer_memory_size(&self) -> usize
[src]
Returns the total number of bytes of memory occupied by the buffers owned by this FixedSizeBinaryArray.
fn get_array_memory_size(&self) -> usize
[src]
Returns the total number of bytes of memory occupied physically by this FixedSizeBinaryArray.
fn data_ref(&self) -> &ArrayData
[src]
fn data_type(&self) -> &DataType
[src]
fn slice(&self, offset: usize, length: usize) -> ArrayRef
[src]
fn len(&self) -> usize
[src]
fn is_empty(&self) -> bool
[src]
fn offset(&self) -> usize
[src]
fn is_null(&self, index: usize) -> bool
[src]
fn is_valid(&self, index: usize) -> bool
[src]
fn null_count(&self) -> usize
[src]
fn to_raw(&self) -> Result<(*const FFI_ArrowArray, *const FFI_ArrowSchema)>
[src]
impl From<FixedSizeListArray> for FixedSizeBinaryArray
[src]
impl From<FixedSizeListArray> for FixedSizeBinaryArray
[src]Creates a FixedSizeBinaryArray
from FixedSizeList<u8>
array
fn from(v: FixedSizeListArray) -> Self
[src]
impl JsonEqual for FixedSizeBinaryArray
[src]
impl JsonEqual for FixedSizeBinaryArray
[src]Auto Trait Implementations
impl RefUnwindSafe for FixedSizeBinaryArray
impl RefUnwindSafe for FixedSizeBinaryArray
impl Send for FixedSizeBinaryArray
impl Send for FixedSizeBinaryArray
impl Sync for FixedSizeBinaryArray
impl Sync for FixedSizeBinaryArray
impl Unpin for FixedSizeBinaryArray
impl Unpin for FixedSizeBinaryArray
impl UnwindSafe for FixedSizeBinaryArray
impl UnwindSafe for FixedSizeBinaryArray