beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BEAM-360) Add a framework for creating Python-SDK sources for new file types
Date Mon, 18 Jul 2016 09:51:20 GMT

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

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

GitHub user chamikaramj opened a pull request:

    https://github.com/apache/incubator-beam/pull/672

    [BEAM-360] Adds a PTransform for Avro source and updates snippets.

    Wrapping a custom source as a 'PTransform' is better than directly using the source using
'df.Read' since the 'PTransform' can be extended without breaking end-user code.
    
    Updates the documentation of avroio module.
    
    Adds 'PTransform' wrappers to custom sources and sinks in 'snippets.py'.

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

    $ git pull https://github.com/chamikaramj/incubator-beam snippets_source_sink_ptransforms

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

    https://github.com/apache/incubator-beam/pull/672.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 #672
    
----
commit 0f206bd4581a341cec0c29348aa68d552b7f5a00
Author: Charles Chen <ccy@google.com>
Date:   2016-07-15T21:37:43Z

    Adds a PTransform for Avro source.
    
    Wrapping a custom source as a PTransform is better than directly using the source using
df.Read since the PTransform can be extended without breaking end-user code.
    
    Updates the documentation of avroio module.
    
    Adds PTransform wrappers to custom sources and sinks in snippets.py.

----


> Add a framework for creating Python-SDK sources for new file types
> ------------------------------------------------------------------
>
>                 Key: BEAM-360
>                 URL: https://issues.apache.org/jira/browse/BEAM-360
>             Project: Beam
>          Issue Type: New Feature
>          Components: sdk-py
>            Reporter: Chamikara Jayalath
>            Assignee: Chamikara Jayalath
>
> We already have a framework for creating new sources for Beam Python SDK - https://github.com/apache/incubator-beam/blob/python-sdk/sdks/python/apache_beam/io/iobase.py#L326
> It would be great if we can add a framework on top of this that encapsulates logic common
to sources that are based on files. This framework can include following features that are
common to sources based on files.
> (1) glob expansion
> (2) support for new file-systems
> (3) dynamic work rebalancing based on byte offsets
> (4) support for reading compressed files.
> Java SDK has a similar framework and it's available at - https://github.com/apache/incubator-beam/blob/master/sdks/java/core/src/main/java/org/apache/beam/sdk/io/FileBasedSource.java



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message