Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BEAM-59] Add FileSystems#matchNewResource #2728

Merged
merged 1 commit into from Apr 27, 2017

Conversation

dhalperi
Copy link
Contributor

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.

@dhalperi
Copy link
Contributor Author

R: @peihe @ssisk @davorbonaci
CC: @vikkyrk

@dhalperi dhalperi force-pushed the filesystem-matchnewresource branch 2 times, most recently from eb33428 to 12e6d90 Compare April 27, 2017 04:34
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.006%) to 69.827% when pulling 12e6d90 on dhalperi:filesystem-matchnewresource into b82cd24 on apache:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 69.813% when pulling 12e6d90 on dhalperi:filesystem-matchnewresource into b82cd24 on apache:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.003%) to 69.831% when pulling 12e6d90 on dhalperi:filesystem-matchnewresource into b82cd24 on apache:master.

@vikkyrk
Copy link
Contributor

vikkyrk commented Apr 27, 2017

@dhalperi dhalperi force-pushed the filesystem-matchnewresource branch 2 times, most recently from d0cc6ce to cf85719 Compare April 27, 2017 18:33
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling cf85719 on dhalperi:filesystem-matchnewresource into ** on apache:master**.

Copy link
Member

@davorbonaci davorbonaci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.
@dhalperi dhalperi force-pushed the filesystem-matchnewresource branch from cf85719 to f93a277 Compare April 27, 2017 21:56
@asfgit asfgit merged commit f93a277 into apache:master Apr 27, 2017
asfgit pushed a commit that referenced this pull request Apr 27, 2017
@dhalperi dhalperi deleted the filesystem-matchnewresource branch April 27, 2017 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants