TheNeuralBit opened a new pull request, #19268:
URL: https://github.com/apache/beam/pull/19268

   This PR adds two new decorators, `@yields_batches` and `@yields_elements`, 
which override the default interpretation for the output of `DoFn.process` and 
`DoFn.process_batch`. These decorators are handled via changes to 
`OutputProcessor` (now renamed to `OutputHandler` for clarity), which branches 
depending on whether batches or elements are expected in the `results` iterable.
   
   Where possible, common logic in `OutputHandler` was extracted into private 
helper methods that can be re-used, the .pxd definition for these methods 
indicates they should be inlined in cython-generated code so they don't affect 
performance.
   
   GitHub Actions Tests Status (on master branch)
   
------------------------------------------------------------------------------------------------
   [![Build python source distribution and 
wheels](https://github.com/apache/beam/workflows/Build%20python%20source%20distribution%20and%20wheels/badge.svg?branch=master&event=schedule)](https://github.com/apache/beam/actions?query=workflow%3A%22Build+python+source+distribution+and+wheels%22+branch%3Amaster+event%3Aschedule)
   [![Python 
tests](https://github.com/apache/beam/workflows/Python%20tests/badge.svg?branch=master&event=schedule)](https://github.com/apache/beam/actions?query=workflow%3A%22Python+Tests%22+branch%3Amaster+event%3Aschedule)
   [![Java 
tests](https://github.com/apache/beam/workflows/Java%20Tests/badge.svg?branch=master&event=schedule)](https://github.com/apache/beam/actions?query=workflow%3A%22Java+Tests%22+branch%3Amaster+event%3Aschedule)
   
   See [CI.md](https://github.com/apache/beam/blob/master/CI.md) for more 
information about GitHub Actions CI.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to