[−][src]Struct arrow::record_batch::RecordBatch
A batch of column-oriented data
Methods
impl RecordBatch
[src]
pub fn try_new(schema: Arc<Schema>, columns: Vec<ArrayRef>) -> Result<Self>
[src]
Creates a RecordBatch
from a schema and columns
Expects the following:
- the vec of columns to not be empty
- the schema and column data types to have equal lengths and match
- each array in columns to have the same length
pub fn schema(&self) -> &Arc<Schema>
[src]
Returns the schema of the record batch
pub fn num_columns(&self) -> usize
[src]
Number of columns in the record batch
pub fn num_rows(&self) -> usize
[src]
Number of rows in each column
pub fn column(&self, i: usize) -> &ArrayRef
[src]
Get a reference to a column's array by index
Trait Implementations
impl Sync for RecordBatch
[src]
impl Clone for RecordBatch
[src]
fn clone(&self) -> RecordBatch
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Send for RecordBatch
[src]
impl<'_> From<&'_ StructArray> for RecordBatch
[src]
fn from(struct_array: &StructArray) -> Self
[src]
Create a record batch from struct array.
This currently does not flatten and nested struct types
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
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.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> FromCast<T> for T
[src]
impl<T, U> Cast<U> for T where
U: FromCast<T>,
[src]
U: FromCast<T>,