[−][src]Struct arrow::builder::PrimitiveArrayBuilder
Array builder for fixed-width primitive types
Methods
impl PrimitiveArrayBuilder<bool>[src]
impl PrimitiveArrayBuilder<bool>pub fn new(capacity: i64) -> Self[src]
pub fn new(capacity: i64) -> SelfCreates a new primitive array builder
pub fn capacity(&self) -> i64[src]
pub fn capacity(&self) -> i64Returns the capacity of this builder measured in slots of type T
pub fn push(&mut self, v: bool) -> Result<()>[src]
pub fn push(&mut self, v: bool) -> Result<()>Pushes a value of type T into the builder
pub fn push_null(&mut self) -> Result<()>[src]
pub fn push_null(&mut self) -> Result<()>Pushes a null slot into the builder
pub fn push_option(&mut self, v: Option<bool>) -> Result<()>[src]
pub fn push_option(&mut self, v: Option<bool>) -> Result<()>Pushes an Option<T> into the builder
pub fn push_slice(&mut self, v: &[bool]) -> Result<()>[src]
pub fn push_slice(&mut self, v: &[bool]) -> Result<()>Pushes a slice of type T into the builder
impl PrimitiveArrayBuilder<u8>[src]
impl PrimitiveArrayBuilder<u8>pub fn new(capacity: i64) -> Self[src]
pub fn new(capacity: i64) -> SelfCreates a new primitive array builder
pub fn capacity(&self) -> i64[src]
pub fn capacity(&self) -> i64Returns the capacity of this builder measured in slots of type T
pub fn push(&mut self, v: u8) -> Result<()>[src]
pub fn push(&mut self, v: u8) -> Result<()>Pushes a value of type T into the builder
pub fn push_null(&mut self) -> Result<()>[src]
pub fn push_null(&mut self) -> Result<()>Pushes a null slot into the builder
pub fn push_option(&mut self, v: Option<u8>) -> Result<()>[src]
pub fn push_option(&mut self, v: Option<u8>) -> Result<()>Pushes an Option<T> into the builder
pub fn push_slice(&mut self, v: &[u8]) -> Result<()>[src]
pub fn push_slice(&mut self, v: &[u8]) -> Result<()>Pushes a slice of type T into the builder
impl PrimitiveArrayBuilder<u16>[src]
impl PrimitiveArrayBuilder<u16>pub fn new(capacity: i64) -> Self[src]
pub fn new(capacity: i64) -> SelfCreates a new primitive array builder
pub fn capacity(&self) -> i64[src]
pub fn capacity(&self) -> i64Returns the capacity of this builder measured in slots of type T
pub fn push(&mut self, v: u16) -> Result<()>[src]
pub fn push(&mut self, v: u16) -> Result<()>Pushes a value of type T into the builder
pub fn push_null(&mut self) -> Result<()>[src]
pub fn push_null(&mut self) -> Result<()>Pushes a null slot into the builder
pub fn push_option(&mut self, v: Option<u16>) -> Result<()>[src]
pub fn push_option(&mut self, v: Option<u16>) -> Result<()>Pushes an Option<T> into the builder
pub fn push_slice(&mut self, v: &[u16]) -> Result<()>[src]
pub fn push_slice(&mut self, v: &[u16]) -> Result<()>Pushes a slice of type T into the builder
impl PrimitiveArrayBuilder<u32>[src]
impl PrimitiveArrayBuilder<u32>pub fn new(capacity: i64) -> Self[src]
pub fn new(capacity: i64) -> SelfCreates a new primitive array builder
pub fn capacity(&self) -> i64[src]
pub fn capacity(&self) -> i64Returns the capacity of this builder measured in slots of type T
pub fn push(&mut self, v: u32) -> Result<()>[src]
pub fn push(&mut self, v: u32) -> Result<()>Pushes a value of type T into the builder
pub fn push_null(&mut self) -> Result<()>[src]
pub fn push_null(&mut self) -> Result<()>Pushes a null slot into the builder
pub fn push_option(&mut self, v: Option<u32>) -> Result<()>[src]
pub fn push_option(&mut self, v: Option<u32>) -> Result<()>Pushes an Option<T> into the builder
pub fn push_slice(&mut self, v: &[u32]) -> Result<()>[src]
pub fn push_slice(&mut self, v: &[u32]) -> Result<()>Pushes a slice of type T into the builder
impl PrimitiveArrayBuilder<u64>[src]
impl PrimitiveArrayBuilder<u64>pub fn new(capacity: i64) -> Self[src]
pub fn new(capacity: i64) -> SelfCreates a new primitive array builder
pub fn capacity(&self) -> i64[src]
pub fn capacity(&self) -> i64Returns the capacity of this builder measured in slots of type T
pub fn push(&mut self, v: u64) -> Result<()>[src]
pub fn push(&mut self, v: u64) -> Result<()>Pushes a value of type T into the builder
pub fn push_null(&mut self) -> Result<()>[src]
pub fn push_null(&mut self) -> Result<()>Pushes a null slot into the builder
pub fn push_option(&mut self, v: Option<u64>) -> Result<()>[src]
pub fn push_option(&mut self, v: Option<u64>) -> Result<()>Pushes an Option<T> into the builder
pub fn push_slice(&mut self, v: &[u64]) -> Result<()>[src]
pub fn push_slice(&mut self, v: &[u64]) -> Result<()>Pushes a slice of type T into the builder
impl PrimitiveArrayBuilder<i8>[src]
impl PrimitiveArrayBuilder<i8>pub fn new(capacity: i64) -> Self[src]
pub fn new(capacity: i64) -> SelfCreates a new primitive array builder
pub fn capacity(&self) -> i64[src]
pub fn capacity(&self) -> i64Returns the capacity of this builder measured in slots of type T
pub fn push(&mut self, v: i8) -> Result<()>[src]
pub fn push(&mut self, v: i8) -> Result<()>Pushes a value of type T into the builder
pub fn push_null(&mut self) -> Result<()>[src]
pub fn push_null(&mut self) -> Result<()>Pushes a null slot into the builder
pub fn push_option(&mut self, v: Option<i8>) -> Result<()>[src]
pub fn push_option(&mut self, v: Option<i8>) -> Result<()>Pushes an Option<T> into the builder
pub fn push_slice(&mut self, v: &[i8]) -> Result<()>[src]
pub fn push_slice(&mut self, v: &[i8]) -> Result<()>Pushes a slice of type T into the builder
impl PrimitiveArrayBuilder<i16>[src]
impl PrimitiveArrayBuilder<i16>pub fn new(capacity: i64) -> Self[src]
pub fn new(capacity: i64) -> SelfCreates a new primitive array builder
pub fn capacity(&self) -> i64[src]
pub fn capacity(&self) -> i64Returns the capacity of this builder measured in slots of type T
pub fn push(&mut self, v: i16) -> Result<()>[src]
pub fn push(&mut self, v: i16) -> Result<()>Pushes a value of type T into the builder
pub fn push_null(&mut self) -> Result<()>[src]
pub fn push_null(&mut self) -> Result<()>Pushes a null slot into the builder
pub fn push_option(&mut self, v: Option<i16>) -> Result<()>[src]
pub fn push_option(&mut self, v: Option<i16>) -> Result<()>Pushes an Option<T> into the builder
pub fn push_slice(&mut self, v: &[i16]) -> Result<()>[src]
pub fn push_slice(&mut self, v: &[i16]) -> Result<()>Pushes a slice of type T into the builder
impl PrimitiveArrayBuilder<i32>[src]
impl PrimitiveArrayBuilder<i32>pub fn new(capacity: i64) -> Self[src]
pub fn new(capacity: i64) -> SelfCreates a new primitive array builder
pub fn capacity(&self) -> i64[src]
pub fn capacity(&self) -> i64Returns the capacity of this builder measured in slots of type T
pub fn push(&mut self, v: i32) -> Result<()>[src]
pub fn push(&mut self, v: i32) -> Result<()>Pushes a value of type T into the builder
pub fn push_null(&mut self) -> Result<()>[src]
pub fn push_null(&mut self) -> Result<()>Pushes a null slot into the builder
pub fn push_option(&mut self, v: Option<i32>) -> Result<()>[src]
pub fn push_option(&mut self, v: Option<i32>) -> Result<()>Pushes an Option<T> into the builder
pub fn push_slice(&mut self, v: &[i32]) -> Result<()>[src]
pub fn push_slice(&mut self, v: &[i32]) -> Result<()>Pushes a slice of type T into the builder
impl PrimitiveArrayBuilder<i64>[src]
impl PrimitiveArrayBuilder<i64>pub fn new(capacity: i64) -> Self[src]
pub fn new(capacity: i64) -> SelfCreates a new primitive array builder
pub fn capacity(&self) -> i64[src]
pub fn capacity(&self) -> i64Returns the capacity of this builder measured in slots of type T
pub fn push(&mut self, v: i64) -> Result<()>[src]
pub fn push(&mut self, v: i64) -> Result<()>Pushes a value of type T into the builder
pub fn push_null(&mut self) -> Result<()>[src]
pub fn push_null(&mut self) -> Result<()>Pushes a null slot into the builder
pub fn push_option(&mut self, v: Option<i64>) -> Result<()>[src]
pub fn push_option(&mut self, v: Option<i64>) -> Result<()>Pushes an Option<T> into the builder
pub fn push_slice(&mut self, v: &[i64]) -> Result<()>[src]
pub fn push_slice(&mut self, v: &[i64]) -> Result<()>Pushes a slice of type T into the builder
impl PrimitiveArrayBuilder<f32>[src]
impl PrimitiveArrayBuilder<f32>pub fn new(capacity: i64) -> Self[src]
pub fn new(capacity: i64) -> SelfCreates a new primitive array builder
pub fn capacity(&self) -> i64[src]
pub fn capacity(&self) -> i64Returns the capacity of this builder measured in slots of type T
pub fn push(&mut self, v: f32) -> Result<()>[src]
pub fn push(&mut self, v: f32) -> Result<()>Pushes a value of type T into the builder
pub fn push_null(&mut self) -> Result<()>[src]
pub fn push_null(&mut self) -> Result<()>Pushes a null slot into the builder
pub fn push_option(&mut self, v: Option<f32>) -> Result<()>[src]
pub fn push_option(&mut self, v: Option<f32>) -> Result<()>Pushes an Option<T> into the builder
pub fn push_slice(&mut self, v: &[f32]) -> Result<()>[src]
pub fn push_slice(&mut self, v: &[f32]) -> Result<()>Pushes a slice of type T into the builder
impl PrimitiveArrayBuilder<f64>[src]
impl PrimitiveArrayBuilder<f64>pub fn new(capacity: i64) -> Self[src]
pub fn new(capacity: i64) -> SelfCreates a new primitive array builder
pub fn capacity(&self) -> i64[src]
pub fn capacity(&self) -> i64Returns the capacity of this builder measured in slots of type T
pub fn push(&mut self, v: f64) -> Result<()>[src]
pub fn push(&mut self, v: f64) -> Result<()>Pushes a value of type T into the builder
pub fn push_null(&mut self) -> Result<()>[src]
pub fn push_null(&mut self) -> Result<()>Pushes a null slot into the builder
pub fn push_option(&mut self, v: Option<f64>) -> Result<()>[src]
pub fn push_option(&mut self, v: Option<f64>) -> Result<()>Pushes an Option<T> into the builder
pub fn push_slice(&mut self, v: &[f64]) -> Result<()>[src]
pub fn push_slice(&mut self, v: &[f64]) -> Result<()>Pushes a slice of type T into the builder
Trait Implementations
impl ArrayBuilder for PrimitiveArrayBuilder<bool>[src]
impl ArrayBuilder for PrimitiveArrayBuilder<bool>type ArrayType = PrimitiveArray<bool>
The type of array that this builder creates
fn into_any(self) -> Box<dyn Any>[src]
fn into_any(self) -> Box<dyn Any>Returns the builder as an owned Any type so that it can be downcast to a specific
implementation before calling it's finish method
fn len(&self) -> i64[src]
fn len(&self) -> i64Returns the number of array slots in the builder
fn finish(self) -> PrimitiveArray<bool>[src]
fn finish(self) -> PrimitiveArray<bool>Builds the PrimitiveArray
impl ArrayBuilder for PrimitiveArrayBuilder<u8>[src]
impl ArrayBuilder for PrimitiveArrayBuilder<u8>type ArrayType = PrimitiveArray<u8>
The type of array that this builder creates
fn into_any(self) -> Box<dyn Any>[src]
fn into_any(self) -> Box<dyn Any>Returns the builder as an owned Any type so that it can be downcast to a specific
implementation before calling it's finish method
fn len(&self) -> i64[src]
fn len(&self) -> i64Returns the number of array slots in the builder
fn finish(self) -> PrimitiveArray<u8>[src]
fn finish(self) -> PrimitiveArray<u8>Builds the PrimitiveArray
impl ArrayBuilder for PrimitiveArrayBuilder<u16>[src]
impl ArrayBuilder for PrimitiveArrayBuilder<u16>type ArrayType = PrimitiveArray<u16>
The type of array that this builder creates
fn into_any(self) -> Box<dyn Any>[src]
fn into_any(self) -> Box<dyn Any>Returns the builder as an owned Any type so that it can be downcast to a specific
implementation before calling it's finish method
fn len(&self) -> i64[src]
fn len(&self) -> i64Returns the number of array slots in the builder
fn finish(self) -> PrimitiveArray<u16>[src]
fn finish(self) -> PrimitiveArray<u16>Builds the PrimitiveArray
impl ArrayBuilder for PrimitiveArrayBuilder<u32>[src]
impl ArrayBuilder for PrimitiveArrayBuilder<u32>type ArrayType = PrimitiveArray<u32>
The type of array that this builder creates
fn into_any(self) -> Box<dyn Any>[src]
fn into_any(self) -> Box<dyn Any>Returns the builder as an owned Any type so that it can be downcast to a specific
implementation before calling it's finish method
fn len(&self) -> i64[src]
fn len(&self) -> i64Returns the number of array slots in the builder
fn finish(self) -> PrimitiveArray<u32>[src]
fn finish(self) -> PrimitiveArray<u32>Builds the PrimitiveArray
impl ArrayBuilder for PrimitiveArrayBuilder<u64>[src]
impl ArrayBuilder for PrimitiveArrayBuilder<u64>type ArrayType = PrimitiveArray<u64>
The type of array that this builder creates
fn into_any(self) -> Box<dyn Any>[src]
fn into_any(self) -> Box<dyn Any>Returns the builder as an owned Any type so that it can be downcast to a specific
implementation before calling it's finish method
fn len(&self) -> i64[src]
fn len(&self) -> i64Returns the number of array slots in the builder
fn finish(self) -> PrimitiveArray<u64>[src]
fn finish(self) -> PrimitiveArray<u64>Builds the PrimitiveArray
impl ArrayBuilder for PrimitiveArrayBuilder<i8>[src]
impl ArrayBuilder for PrimitiveArrayBuilder<i8>type ArrayType = PrimitiveArray<i8>
The type of array that this builder creates
fn into_any(self) -> Box<dyn Any>[src]
fn into_any(self) -> Box<dyn Any>Returns the builder as an owned Any type so that it can be downcast to a specific
implementation before calling it's finish method
fn len(&self) -> i64[src]
fn len(&self) -> i64Returns the number of array slots in the builder
fn finish(self) -> PrimitiveArray<i8>[src]
fn finish(self) -> PrimitiveArray<i8>Builds the PrimitiveArray
impl ArrayBuilder for PrimitiveArrayBuilder<i16>[src]
impl ArrayBuilder for PrimitiveArrayBuilder<i16>type ArrayType = PrimitiveArray<i16>
The type of array that this builder creates
fn into_any(self) -> Box<dyn Any>[src]
fn into_any(self) -> Box<dyn Any>Returns the builder as an owned Any type so that it can be downcast to a specific
implementation before calling it's finish method
fn len(&self) -> i64[src]
fn len(&self) -> i64Returns the number of array slots in the builder
fn finish(self) -> PrimitiveArray<i16>[src]
fn finish(self) -> PrimitiveArray<i16>Builds the PrimitiveArray
impl ArrayBuilder for PrimitiveArrayBuilder<i32>[src]
impl ArrayBuilder for PrimitiveArrayBuilder<i32>type ArrayType = PrimitiveArray<i32>
The type of array that this builder creates
fn into_any(self) -> Box<dyn Any>[src]
fn into_any(self) -> Box<dyn Any>Returns the builder as an owned Any type so that it can be downcast to a specific
implementation before calling it's finish method
fn len(&self) -> i64[src]
fn len(&self) -> i64Returns the number of array slots in the builder
fn finish(self) -> PrimitiveArray<i32>[src]
fn finish(self) -> PrimitiveArray<i32>Builds the PrimitiveArray
impl ArrayBuilder for PrimitiveArrayBuilder<i64>[src]
impl ArrayBuilder for PrimitiveArrayBuilder<i64>type ArrayType = PrimitiveArray<i64>
The type of array that this builder creates
fn into_any(self) -> Box<dyn Any>[src]
fn into_any(self) -> Box<dyn Any>Returns the builder as an owned Any type so that it can be downcast to a specific
implementation before calling it's finish method
fn len(&self) -> i64[src]
fn len(&self) -> i64Returns the number of array slots in the builder
fn finish(self) -> PrimitiveArray<i64>[src]
fn finish(self) -> PrimitiveArray<i64>Builds the PrimitiveArray
impl ArrayBuilder for PrimitiveArrayBuilder<f32>[src]
impl ArrayBuilder for PrimitiveArrayBuilder<f32>type ArrayType = PrimitiveArray<f32>
The type of array that this builder creates
fn into_any(self) -> Box<dyn Any>[src]
fn into_any(self) -> Box<dyn Any>Returns the builder as an owned Any type so that it can be downcast to a specific
implementation before calling it's finish method
fn len(&self) -> i64[src]
fn len(&self) -> i64Returns the number of array slots in the builder
fn finish(self) -> PrimitiveArray<f32>[src]
fn finish(self) -> PrimitiveArray<f32>Builds the PrimitiveArray
impl ArrayBuilder for PrimitiveArrayBuilder<f64>[src]
impl ArrayBuilder for PrimitiveArrayBuilder<f64>type ArrayType = PrimitiveArray<f64>
The type of array that this builder creates
fn into_any(self) -> Box<dyn Any>[src]
fn into_any(self) -> Box<dyn Any>Returns the builder as an owned Any type so that it can be downcast to a specific
implementation before calling it's finish method
fn len(&self) -> i64[src]
fn len(&self) -> i64Returns the number of array slots in the builder
fn finish(self) -> PrimitiveArray<f64>[src]
fn finish(self) -> PrimitiveArray<f64>Builds the PrimitiveArray
Auto Trait Implementations
impl<T> Send for PrimitiveArrayBuilder<T>
impl<T> Send for PrimitiveArrayBuilder<T>impl<T> Sync for PrimitiveArrayBuilder<T>
impl<T> Sync for PrimitiveArrayBuilder<T>Blanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeIdimpl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut T