GitHub user hvanhovell opened a pull request:

    https://github.com/apache/spark/pull/9417

    [SPARK-11449][Core] PortableDataStream should be a factory

    ```PortableDataStream``` maintains some internal state. This makes it 
tricky to reuse a stream (one needs to call ```close``` on both the 
```PortableDataStream``` and the ```InputStream``` it produces).
    
    This PR removes all state from ```PortableDataStream``` and effectively 
turns it into an ```InputStream```/```Array[Byte]``` factory. This makes the 
user responsible for managing the ```InputStream``` it returns.
    
    cc @srowen 

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/hvanhovell/spark SPARK-11449

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/9417.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #9417
    
----
commit 91b8c6cc86c83df161e176c7a4efbc3dd439d037
Author: Herman van Hovell <hvanhov...@questtec.nl>
Date:   2015-11-02T15:42:44Z

    Removed state from PortableDataStream

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to