pub struct RecordBatch { /* private fields */ }Expand description
A decoded block with one logical array per schema column.
Implementations§
Source§impl RecordBatch
impl RecordBatch
Sourcepub fn try_new(
schema: Arc<Schema>,
columns: Vec<Array>,
row_count: usize,
) -> Result<Self>
pub fn try_new( schema: Arc<Schema>, columns: Vec<Array>, row_count: usize, ) -> Result<Self>
Build a batch from arrays that already have one position per row.
The row count is given rather than taken from the first array, so a batch keeps its shape independently of how many columns it has, and every array is checked against it.
Sourcepub fn column_by_name(&self, name: &str) -> Option<&Array>
pub fn column_by_name(&self, name: &str) -> Option<&Array>
Find a decoded array by its schema column name.
Trait Implementations§
Source§impl Clone for RecordBatch
impl Clone for RecordBatch
Source§fn clone(&self) -> RecordBatch
fn clone(&self) -> RecordBatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RecordBatch
impl Debug for RecordBatch
Source§impl PartialEq for RecordBatch
impl PartialEq for RecordBatch
impl StructuralPartialEq for RecordBatch
Auto Trait Implementations§
impl Freeze for RecordBatch
impl RefUnwindSafe for RecordBatch
impl Send for RecordBatch
impl Sync for RecordBatch
impl Unpin for RecordBatch
impl UnsafeUnpin for RecordBatch
impl UnwindSafe for RecordBatch
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more