Struct datafusion::physical_plan::test::TestPartitionStream
source · pub struct TestPartitionStream {
pub schema: Arc<Schema>,
pub batches: Vec<RecordBatch>,
}
Fields§
§schema: Arc<Schema>
§batches: Vec<RecordBatch>
Implementations§
source§impl TestPartitionStream
impl TestPartitionStream
sourcepub fn new_with_batches(batches: Vec<RecordBatch>) -> TestPartitionStream
pub fn new_with_batches(batches: Vec<RecordBatch>) -> TestPartitionStream
Create a new stream partition with the provided batches
Trait Implementations§
source§impl PartitionStream for TestPartitionStream
impl PartitionStream for TestPartitionStream
source§fn execute(
&self,
_ctx: Arc<TaskContext>,
) -> Pin<Box<dyn RecordBatchStream<Item = Result<RecordBatch, DataFusionError>> + Send>>
fn execute( &self, _ctx: Arc<TaskContext>, ) -> Pin<Box<dyn RecordBatchStream<Item = Result<RecordBatch, DataFusionError>> + Send>>
Returns a stream yielding this partitions values
Auto Trait Implementations§
impl Freeze for TestPartitionStream
impl !RefUnwindSafe for TestPartitionStream
impl Send for TestPartitionStream
impl Sync for TestPartitionStream
impl Unpin for TestPartitionStream
impl !UnwindSafe for TestPartitionStream
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