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

Method poll_next

datafusion/core/tests/custom_sources_cases/mod.rs:121–131  ·  view source on GitHub ↗
(
        self: Pin<&mut Self>,
        _cx: &mut Context<'_>,
    )

Source from the content-addressed store, hash-verified

119 type Item = Result<RecordBatch>;
120
121 fn poll_next(
122 self: Pin<&mut Self>,
123 _cx: &mut Context<'_>,
124 ) -> Poll<Option<Self::Item>> {
125 if self.nb_batch > 0 {
126 self.get_mut().nb_batch -= 1;
127 Poll::Ready(Some(TEST_CUSTOM_RECORD_BATCH!().map_err(Into::into)))
128 } else {
129 Poll::Ready(None)
130 }
131 }
132}
133
134impl DisplayAs for CustomExecutionPlan {

Callers 1

Calls 1

get_mutMethod · 0.80

Tested by

no test coverage detected