[−][src]Struct arrow::array::BooleanArray
Array of bools
Implementations
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 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]
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]
fn as_any(&self) -> &dyn Any
[src]
fn data(&self) -> ArrayDataRef
[src]
fn data_ref(&self) -> &ArrayDataRef
[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_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 Debug for BooleanArray
[src]
impl From<Arc<ArrayData>> for BooleanArray
[src]
fn from(data: ArrayDataRef) -> Self
[src]
impl From<Vec<Option<bool>, Global>> for BooleanArray
[src]
impl From<Vec<bool, Global>> 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]
type Item = Option<bool>
The type of the elements being iterated over.
type IntoIter = BooleanIter<'a>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl JsonEqual for BooleanArray
[src]
Implement array equals for numeric type
fn equals_json(&self, json: &[&Value]) -> bool
[src]
fn equals_json_values(&self, json: &[Value]) -> bool
[src]
impl PartialEq<BooleanArray> for BooleanArray
[src]
Auto Trait Implementations
impl RefUnwindSafe for BooleanArray
[src]
impl Send for BooleanArray
[src]
impl Sync for BooleanArray
[src]
impl Unpin for BooleanArray
[src]
impl UnwindSafe for BooleanArray
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,