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

Method into_stream

datafusion/datasource-parquet/src/push_decoder.rs:130–134  ·  view source on GitHub ↗

Drive the state machine to completion as a [`futures::Stream`] of record batches. The returned stream is fused and boxed so the caller can wrap it (for example, with an early-stopping adapter) without naming the unfold type.

(self)

Source from the content-addressed store, hash-verified

128 /// The returned stream is fused and boxed so the caller can wrap it (for
129 /// example, with an early-stopping adapter) without naming the unfold type.
130 pub(crate) fn into_stream(self) -> BoxStream<'static, Result<RecordBatch>> {
131 futures::stream::unfold(self, |state| async move { state.transition().await })
132 .fuse()
133 .boxed()
134 }
135
136 /// Advances the decoder state machine until the next [`RecordBatch`] is
137 /// produced, the file is fully consumed, or an error occurs.

Callers 3

query_compress_dataFunction · 0.45
get_streamFunction · 0.45

Calls 1

transitionMethod · 0.45

Tested by

no test coverage detected