Struct arrow::array::BooleanArray [−][src]
pub struct BooleanArray { /* fields omitted */ }
Expand description
Array of bools
Implementations
impl BooleanArray
[src]
impl BooleanArray
[src]pub fn builder(capacity: usize) -> BooleanBuilder
[src]
pub fn values(&self) -> &Buffer
[src]
pub fn values(&self) -> &Buffer
[src]Returns a Buffer
holding all the values of this array.
Note this doesn’t take the offset of this array into account.
pub unsafe fn value_unchecked(&self, i: usize) -> bool
[src]
pub unsafe fn value_unchecked(&self, i: usize) -> bool
[src]Returns the boolean value at index i
.
Safety
This doesn’t check bounds, the caller must ensure that index < self.len()
impl<'a> BooleanArray
[src]
impl<'a> BooleanArray
[src]pub fn iter(&'a self) -> BooleanIter<'a>ⓘNotable traits for BooleanIter<'a>
impl<'a> Iterator for BooleanIter<'a> type Item = Option<bool>;
[src]
pub fn iter(&'a self) -> BooleanIter<'a>ⓘNotable traits for BooleanIter<'a>
impl<'a> Iterator for BooleanIter<'a> type Item = Option<bool>;
[src]constructs a new iterator
Trait Implementations
impl Array for BooleanArray
[src]
impl Array for BooleanArray
[src]fn get_buffer_memory_size(&self) -> usize
[src]
fn get_buffer_memory_size(&self) -> usize
[src]Returns the total number of bytes of memory occupied by the buffers owned by this BooleanArray.
fn get_array_memory_size(&self) -> usize
[src]
fn get_array_memory_size(&self) -> usize
[src]Returns the total number of bytes of memory occupied physically by this BooleanArray.
fn data_ref(&self) -> &ArrayData
[src]
fn data_ref(&self) -> &ArrayData
[src]Returns a reference-counted pointer to the underlying data of this array.
fn slice(&self, offset: usize, length: usize) -> ArrayRef
[src]
fn slice(&self, offset: usize, length: usize) -> ArrayRef
[src]Returns a zero-copy slice of this array with the indicated offset and length. Read more
fn offset(&self) -> usize
[src]
fn offset(&self) -> usize
[src]Returns the offset into the underlying data used by this array(-slice).
Note that the underlying data can be shared by many arrays.
This defaults to 0
. Read more
fn is_null(&self, index: usize) -> bool
[src]
fn is_null(&self, index: usize) -> bool
[src]Returns whether the element at index
is null.
When using this function on a slice, the index is relative to the slice. Read more
fn is_valid(&self, index: usize) -> bool
[src]
fn is_valid(&self, index: usize) -> bool
[src]Returns whether the element at index
is not null.
When using this function on a slice, the index is relative to the slice. Read more
fn null_count(&self) -> usize
[src]
fn null_count(&self) -> usize
[src]Returns the total number of null values in this array. Read more
fn to_raw(&self) -> Result<(*const FFI_ArrowArray, *const FFI_ArrowSchema)>
[src]
fn to_raw(&self) -> Result<(*const FFI_ArrowArray, *const FFI_ArrowSchema)>
[src]returns two pointers that represent this array in the C Data Interface (FFI)
impl Debug for BooleanArray
[src]
impl Debug for BooleanArray
[src]impl From<ArrayData> for BooleanArray
[src]
impl From<ArrayData> for BooleanArray
[src]impl<Ptr: Borrow<Option<bool>>> FromIterator<Ptr> for BooleanArray
[src]
impl<Ptr: Borrow<Option<bool>>> FromIterator<Ptr> for BooleanArray
[src]fn from_iter<I: IntoIterator<Item = Ptr>>(iter: I) -> Self
[src]
fn from_iter<I: IntoIterator<Item = Ptr>>(iter: I) -> Self
[src]Creates a value from an iterator. Read more
impl<'a> IntoIterator for &'a BooleanArray
[src]
impl<'a> IntoIterator for &'a BooleanArray
[src]impl JsonEqual for BooleanArray
[src]
impl JsonEqual for BooleanArray
[src]Implement array equals for numeric type
impl PartialEq<BooleanArray> for BooleanArray
[src]
impl PartialEq<BooleanArray> for BooleanArray
[src]Auto Trait Implementations
impl RefUnwindSafe for BooleanArray
impl Send for BooleanArray
impl Sync for BooleanArray
impl Unpin for BooleanArray
impl UnwindSafe for BooleanArray
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,