Struct datafusion::types::Array [−][src]
pub struct Array { /* fields omitted */ }
Methods
impl Array
[src]
impl Array
pub fn new(len: usize, data: ArrayData) -> Self
[src]
pub fn new(len: usize, data: ArrayData) -> Self
Create a new array where there are no null values
pub fn with_nulls(
len: usize,
data: ArrayData,
null_count: usize,
bitmap: Bitmap
) -> Self
[src]
pub fn with_nulls(
len: usize,
data: ArrayData,
null_count: usize,
bitmap: Bitmap
) -> Self
Create a new array where there are no null values
pub fn data(&self) -> &ArrayData
[src]
pub fn data(&self) -> &ArrayData
Get a reference to the array data
pub fn len(&self) -> usize
[src]
pub fn len(&self) -> usize
number of elements in the array
pub fn null_count(&self) -> usize
[src]
pub fn null_count(&self) -> usize
number of null elements in the array
pub fn validity_bitmap(&self) -> &Option<Bitmap>
[src]
pub fn validity_bitmap(&self) -> &Option<Bitmap>
If null_count is greater than zero then the validity_bitmap will be Some(Bitmap)
Trait Implementations
impl From<Vec<bool>> for Array
[src]
impl From<Vec<bool>> for Array
impl From<Buffer<bool>> for Array
[src]
impl From<Buffer<bool>> for Array
impl From<Vec<f32>> for Array
[src]
impl From<Vec<f32>> for Array
impl From<Buffer<f32>> for Array
[src]
impl From<Buffer<f32>> for Array
impl From<Vec<f64>> for Array
[src]
impl From<Vec<f64>> for Array
impl From<Buffer<f64>> for Array
[src]
impl From<Buffer<f64>> for Array
impl From<Vec<u8>> for Array
[src]
impl From<Vec<u8>> for Array
impl From<Buffer<u8>> for Array
[src]
impl From<Buffer<u8>> for Array
impl From<Vec<u16>> for Array
[src]
impl From<Vec<u16>> for Array
impl From<Buffer<u16>> for Array
[src]
impl From<Buffer<u16>> for Array
impl From<Vec<u32>> for Array
[src]
impl From<Vec<u32>> for Array
impl From<Buffer<u32>> for Array
[src]
impl From<Buffer<u32>> for Array
impl From<Vec<u64>> for Array
[src]
impl From<Vec<u64>> for Array
impl From<Buffer<u64>> for Array
[src]
impl From<Buffer<u64>> for Array
impl From<Vec<i8>> for Array
[src]
impl From<Vec<i8>> for Array
impl From<Buffer<i8>> for Array
[src]
impl From<Buffer<i8>> for Array
impl From<Vec<i16>> for Array
[src]
impl From<Vec<i16>> for Array
impl From<Buffer<i16>> for Array
[src]
impl From<Buffer<i16>> for Array
impl From<Vec<i32>> for Array
[src]
impl From<Vec<i32>> for Array
impl From<Buffer<i32>> for Array
[src]
impl From<Buffer<i32>> for Array
impl From<Vec<i64>> for Array
[src]
impl From<Vec<i64>> for Array
impl From<Buffer<i64>> for Array
[src]
impl From<Buffer<i64>> for Array
impl From<Vec<&'static str>> for Array
[src]
impl From<Vec<&'static str>> for Array
This method mostly just used for unit tests
impl From<Vec<String>> for Array
[src]
impl From<Vec<String>> for Array
impl From<Vec<Rc<Array>>> for Array
[src]
impl From<Vec<Rc<Array>>> for Array