You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by dhalperi <gi...@git.apache.org> on 2017/04/27 04:27:22 UTC

[GitHub] beam pull request #2728: [BEAM-59] Add FileSystems#matchNewResource

GitHub user dhalperi opened a pull request:

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

    [BEAM-59] Add FileSystems#matchNewResource

    The new FileSystems API needs a way to generate a ResourceId for a
    resource that does not exist. This does not come up in sources, because
    we typically are just matching existing files. However, sinks need the
    ability to reference a new directory (say, in order to create it).
    
    Couldn't think of anything better than a simple function that says
    "treat this string as a full resource path with the specified type",
    which is what FileSystems#matchNewResource is.

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

    $ git pull https://github.com/dhalperi/beam filesystem-matchnewresource

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

    https://github.com/apache/beam/pull/2728.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 #2728
    
----
commit 2f52172bbd4424642cfa3dfe279e8ed12eb404c5
Author: Dan Halperin <dh...@google.com>
Date:   2017-04-26T00:29:02Z

    [BEAM-59] Add FileSystems#matchNewResource
    
    The new FileSystems API needs a way to generate a ResourceId for a
    resource that does not exist. This does not come up in sources, because
    we typically are just matching existing files. However, sinks need the
    ability to reference a new directory (say, in order to create it).
    
    Couldn't think of anything better than a simple function that says
    "treat this string as a full resource path with the specified type",
    which is what FileSystems#matchNewResource is.

----


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] beam pull request #2728: [BEAM-59] Add FileSystems#matchNewResource

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

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


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---