MCPcopy Create free account
hub / github.com/apache/datafusion / into_stream

Method into_stream

datafusion/datasource/src/morsel/mocks.rs:632–642  ·  view source on GitHub ↗
(self: Box<Self>)

Source from the content-addressed store, hash-verified

630
631impl Morsel for MockMorsel {
632 fn into_stream(self: Box<Self>) -> BoxStream<'static, Result<RecordBatch>> {
633 self.observer.push(MorselEvent::MorselStreamStarted {
634 morsel_id: self.morsel_id,
635 });
636 Box::pin(MockMorselStream {
637 observer: self.observer.clone(),
638 morsel_id: self.morsel_id,
639 batch_ids: self.batch_ids.into(),
640 finished: false,
641 })
642 }
643}
644
645/// Stream returned by [`MockMorsel::into_stream`].

Callers 2

find_first_newlineFunction · 0.45
poll_scanMethod · 0.45

Calls 3

pushMethod · 0.45
cloneMethod · 0.45
intoMethod · 0.45

Tested by

no test coverage detected