[ 
https://issues.apache.org/jira/browse/BEAM-2643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16105992#comment-16105992
 ] 

ASF GitHub Bot commented on BEAM-2643:
--------------------------------------

GitHub user chamikaramj opened a pull request:

    https://github.com/apache/beam/pull/3661

    [BEAM-2643] Adds two new Read PTransforms that can be used to read a 
massive number of files

    textio.ReadAllFromText is for reading a PCollection of text files/file 
patterns.
    avroio.ReadAllFromAvro is for reading a PCollection of Avro files/file 
patterns.
    
    Most of the logic was generalized to a new PTransform 
filebasedsource.ReadAllFiles so that other file-based sources can be easily 
adapted to follow the same pattern.
    


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

    $ git pull https://github.com/chamikaramj/beam fileio_read_all

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

    https://github.com/apache/beam/pull/3661.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 #3661
    
----
commit 5174e48a3e3ac495d452f438be916b3046ed1cf4
Author: [email protected] <[email protected]>
Date:   2017-07-29T02:39:02Z

    Adds two new Read PTransforms that can be used to read a massive number of 
files.
    
    textio.ReadAllFromText is for reading a PCollection of text files/file 
patterns.
    avroio.ReadAllFromAvro is for reading a PCollection of Avro files/file 
patterns.

----


> Add TextIO and AvroIO read transforms that can read a PCollection of files
> --------------------------------------------------------------------------
>
>                 Key: BEAM-2643
>                 URL: https://issues.apache.org/jira/browse/BEAM-2643
>             Project: Beam
>          Issue Type: New Feature
>          Components: sdk-py
>            Reporter: Chamikara Jayalath
>            Assignee: Chamikara Jayalath
>
> Java SDK now has TextIO.read_all() API that allows reading a massive number 
> of files by moving from using the BoundedSource API (which may perform 
> expensive source operations on the control plane) to using ParDo operations.
> https://github.com/apache/beam/blob/master/sdks/java/core/src/main/java/org/apache/beam/sdk/io/TextIO.java#L170
> This API should be added for Python SDK as well.
> This form of reading files does not support dynamic work rebalancing for now. 
> But this should not matter much when reading a massive number of relatively 
> small files. In the future this API can support dynamic work rebalancing 
> through Splittable DoFn.
> cc: [~jkff]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to