pub struct RecordBatchSource { /* private fields */ }Expand description
In-memory data source from Arrow RecordBatches
Implementations§
Source§impl RecordBatchSource
impl RecordBatchSource
Sourcepub fn new(schema: Arc<ArrowSchema>, batches: Vec<RecordBatch>) -> Result<Self>
pub fn new(schema: Arc<ArrowSchema>, batches: Vec<RecordBatch>) -> Result<Self>
Create a new in-memory source from RecordBatches
Trait Implementations§
Source§impl DataSource for RecordBatchSource
impl DataSource for RecordBatchSource
Source§fn load(&self) -> Result<(Arc<ArrowSchema>, Vec<RecordBatch>)>
fn load(&self) -> Result<(Arc<ArrowSchema>, Vec<RecordBatch>)>
Load data from the source Read more
Auto Trait Implementations§
impl Freeze for RecordBatchSource
impl !RefUnwindSafe for RecordBatchSource
impl Send for RecordBatchSource
impl Sync for RecordBatchSource
impl Unpin for RecordBatchSource
impl !UnwindSafe for RecordBatchSource
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more