Struct arrow::array::BooleanArray [−][src]
pub struct BooleanArray { /* fields omitted */ }
Array of bools
Implementations
impl BooleanArray
[src]
impl BooleanArray
[src]pub fn len(&self) -> usize
[src]
Returns the length of this array.
pub fn is_empty(&self) -> bool
[src]
Returns whether this array is empty.
pub fn builder(capacity: usize) -> BooleanBuilder
[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]
Returns the boolean value at index i
.
Safety
This doesn’t check bounds, the caller must ensure that index < self.len()
pub fn value(&self, i: usize) -> bool
[src]
Returns the boolean value at index i
.
Note this doesn’t do any bound checking, for performance reason.
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]
Notable traits for BooleanIter<'a>
impl<'a> Iterator for BooleanIter<'a> type Item = Option<bool>;
constructs a new iterator
Trait Implementations
impl Array for BooleanArray
[src]
impl Array for BooleanArray
[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 BooleanArray.
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_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<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]
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 RefUnwindSafe for BooleanArray
impl Send for BooleanArray
impl Send for BooleanArray
impl Sync for BooleanArray
impl Sync for BooleanArray
impl Unpin for BooleanArray
impl Unpin for BooleanArray
impl UnwindSafe for BooleanArray
impl UnwindSafe for BooleanArray