(
mut self: Pin<&mut Self>,
cx: &mut Context<'_>,
)
| 792 | type Item = Result<RecordBatch>; |
| 793 | |
| 794 | fn poll_next( |
| 795 | mut self: Pin<&mut Self>, |
| 796 | cx: &mut Context<'_>, |
| 797 | ) -> Poll<Option<Self::Item>> { |
| 798 | match ready!(self.input.poll_next_unpin(cx)) { |
| 799 | Some(Ok(batch)) => { |
| 800 | let elapsed = self.metrics.elapsed_compute().clone(); |
| 801 | let _timer = elapsed.timer(); |
| 802 | let result = self.sampler.sample(&batch); |
| 803 | Poll::Ready(Some(result.record_output(&self.metrics))) |
| 804 | } |
| 805 | Some(Err(e)) => Poll::Ready(Some(Err(e))), |
| 806 | None => Poll::Ready(None), |
| 807 | } |
| 808 | } |
| 809 | } |
| 810 | |
| 811 | impl RecordBatchStream for SampleStream { |
nothing calls this directly
no test coverage detected