{"action":"created","comment":{"url":"https://api.github.com/repos/apache/incubator-beam/pulls/comments/65605727","id":65605727,"diff_hunk":"@@ -149,6 +150,26 @@ public ReadableByteChannel createDecompressingChannel(ReadableByteChannel channe\n         return Channels.newChannel(\n             new BZip2CompressorInputStream(Channels.newInputStream(channel)));\n       }\n+    },\n+\n+    /**\n+     * Reads a byte channel assuming it is compressed with zip.\n+     */\n+    ZIP {\n+      @Override\n+      public boolean matches(String fileName) {\n+        return fileName.toLowerCase().endsWith(\".zip\");\n+      }\n+\n+      public ReadableByteChannel createDecompressingChannel(ReadableByteChannel channel)\n+        throws IOException {\n+        ZipInputStream zip = new ZipInputStream(Channels.newInputStream(channel));\n+        // TODO deal with multi-entries zip\n+        if (zip.getNextEntry() != null) {\n+          return Channels.newChannel(zip);\n+        }\n+        return null;","path":"sdks/java/core/src/main/java/org/apache/beam/sdk/io/CompressedSource.java","position":30,"original_position":30,"commit_id":"ce2dcec24b0c849144b5c2c9d7085983e979bc26","original_commit_id":"ce2dcec24b0c849144b5c2c9d7085983e979bc26","user":{"login":"dhalperi","id":526415,"avatar_url":"https://avatars.githubusercontent.com/u/526415?v=3","gravatar_id":"","url":"https://api.github.com/users/dhalperi","html_url":"https://github.com/dhalperi","followers_url":"https://api.github.com/users/dhalperi/followers","following_url":"https://api.github.com/users/dhalperi/following{/other_user}","gists_url":"https://api.github.com/users/dhalperi/gists{/gist_id}","starred_url":"https://api.github.com/users/dhalperi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhalperi/subscriptions","organizations_url":"https://api.github.com/users/dhalperi/orgs","repos_url":"https://api.github.com/users/dhalperi/repos","events_url":"https://api.github.com/users/dhalperi/events{/privacy}","received_events_url":"https://api.github.com/users/dhalperi/received_events","type":"User","site_admin":false},"body":"should you instead throw an `UnsupportedOperationException` explaining the bug?\r\n\r\nAnd maybe file a related JIRA?","created_at":"2016-06-02T19:46:07Z","updated_at":"2016-06-02T19:46:07Z","html_url":"https://github.com/apache/incubator-beam/pull/400#discussion_r65605727","pull_request_url":"https://api.github.com/repos/apache/incubator-beam/pulls/400","_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-beam/pulls/comments/65605727"},"html":{"href":"https://github.com/apache/incubator-beam/pull/400#discussion_r65605727"},"pull_request":{"href":"https://api.github.com/repos/apache/incubator-beam/pulls/400"}}},"pull_request":{"url":"https://api.github.com/repos/apache/incubator-beam/pulls/400","id":72006141,"html_url":"https://github.com/apache/incubator-beam/pull/400","diff_url":"https://github.com/apache/incubator-beam/pull/400.diff","patch_url":"https://github.com/apache/incubator-beam/pull/400.patch","issue_url":"https://api.github.com/repos/apache/incubator-beam/issues/400","number":400,"state":"open","locked":false,"title":"[BEAM-314] Add zip compression support in TextIO","user":{"login":"jbonofre","id":158903,"avatar_url":"https://avatars.githubusercontent.com/u/158903?v=3","gravatar_id":"","url":"https://api.github.com/users/jbonofre","html_url":"https://github.com/jbonofre","followers_url":"https://api.github.com/users/jbonofre/followers","following_url":"https://api.github.com/users/jbonofre/following{/other_user}","gists_url":"https://api.github.com/users/jbonofre/gists{/gist_id}","starred_url":"https://api.github.com/users/jbonofre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbonofre/subscriptions","organizations_url":"https://api.github.com/users/jbonofre/orgs","repos_url":"https://api.github.com/users/jbonofre/repos","events_url":"https://api.github.com/users/jbonofre/events{/privacy}","received_events_url":"https://api.github.com/users/jbonofre/received_events","type":"User","site_admin":false},"body":"Be sure to do all of the following to help us incorporate your contribution\r\nquickly and easily:\r\n\r\n - [X] Make sure the PR title is formatted like:\r\n   `[BEAM-<Jira issue #>] Description of pull request`\r\n - [X] Make sure tests pass via `mvn clean verify`. (Even better, enable\r\n       Travis-CI on your fork and ensure the whole test matrix passes).\r\n - [X] Replace `<Jira issue #>` in the title with the actual Jira issue\r\n       number, if there is one.\r\n - [X] If this contribution is large, please file an Apache\r\n       [Individual Contributor License Agreement](https://www.apache.org/licenses/icla.txt).\r\n\r\n---\r\nAdd zip compression support in TextIO.\r\n","created_at":"2016-05-31T12:24:17Z","updated_at":"2016-06-02T19:46:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8e281eda69ea17046a65fb3e5d8338ca4bf3a00f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/incubator-beam/pulls/400/commits","review_comments_url":"https://api.github.com/repos/apache/incubator-beam/pulls/400/comments","review_comment_url":"https://api.github.com/repos/apache/incubator-beam/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/incubator-beam/issues/400/comments","statuses_url":"https://api.github.com/repos/apache/incubator-beam/statuses/ce2dcec24b0c849144b5c2c9d7085983e979bc26","head":{"label":"jbonofre:BEAM-314","ref":"BEAM-314","sha":"ce2dcec24b0c849144b5c2c9d7085983e979bc26","user":{"login":"jbonofre","id":158903,"avatar_url":"https://avatars.githubusercontent.com/u/158903?v=3","gravatar_id":"","url":"https://api.github.com/users/jbonofre","html_url":"https://github.com/jbonofre","followers_url":"https://api.github.com/users/jbonofre/followers","following_url":"https://api.github.com/users/jbonofre/following{/other_user}","gists_url":"https://api.github.com/users/jbonofre/gists{/gist_id}","starred_url":"https://api.github.com/users/jbonofre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbonofre/subscriptions","organizations_url":"https://api.github.com/users/jbonofre/orgs","repos_url":"https://api.github.com/users/jbonofre/repos","events_url":"https://api.github.com/users/jbonofre/events{/privacy}","received_events_url":"https://api.github.com/users/jbonofre/received_events","type":"User","site_admin":false},"repo":{"id":53902942,"name":"incubator-beam","full_name":"jbonofre/incubator-beam","owner":{"login":"jbonofre","id":158903,"avatar_url":"https://avatars.githubusercontent.com/u/158903?v=3","gravatar_id":"","url":"https://api.github.com/users/jbonofre","html_url":"https://github.com/jbonofre","followers_url":"https://api.github.com/users/jbonofre/followers","following_url":"https://api.github.com/users/jbonofre/following{/other_user}","gists_url":"https://api.github.com/users/jbonofre/gists{/gist_id}","starred_url":"https://api.github.com/users/jbonofre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbonofre/subscriptions","organizations_url":"https://api.github.com/users/jbonofre/orgs","repos_url":"https://api.github.com/users/jbonofre/repos","events_url":"https://api.github.com/users/jbonofre/events{/privacy}","received_events_url":"https://api.github.com/users/jbonofre/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jbonofre/incubator-beam","description":"Mirror of Apache Beam (Incubating)","fork":true,"url":"https://api.github.com/repos/jbonofre/incubator-beam","forks_url":"https://api.github.com/repos/jbonofre/incubator-beam/forks","keys_url":"https://api.github.com/repos/jbonofre/incubator-beam/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jbonofre/incubator-beam/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jbonofre/incubator-beam/teams","hooks_url":"https://api.github.com/repos/jbonofre/incubator-beam/hooks","issue_events_url":"https://api.github.com/repos/jbonofre/incubator-beam/issues/events{/number}","events_url":"https://api.github.com/repos/jbonofre/incubator-beam/events","assignees_url":"https://api.github.com/repos/jbonofre/incubator-beam/assignees{/user}","branches_url":"https://api.github.com/repos/jbonofre/incubator-beam/branches{/branch}","tags_url":"https://api.github.com/repos/jbonofre/incubator-beam/tags","blobs_url":"https://api.github.com/repos/jbonofre/incubator-beam/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jbonofre/incubator-beam/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jbonofre/incubator-beam/git/refs{/sha}","trees_url":"https://api.github.com/repos/jbonofre/incubator-beam/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jbonofre/incubator-beam/statuses/{sha}","languages_url":"https://api.github.com/repos/jbonofre/incubator-beam/languages","stargazers_url":"https://api.github.com/repos/jbonofre/incubator-beam/stargazers","contributors_url":"https://api.github.com/repos/jbonofre/incubator-beam/contributors","subscribers_url":"https://api.github.com/repos/jbonofre/incubator-beam/subscribers","subscription_url":"https://api.github.com/repos/jbonofre/incubator-beam/subscription","commits_url":"https://api.github.com/repos/jbonofre/incubator-beam/commits{/sha}","git_commits_url":"https://api.github.com/repos/jbonofre/incubator-beam/git/commits{/sha}","comments_url":"https://api.github.com/repos/jbonofre/incubator-beam/comments{/number}","issue_comment_url":"https://api.github.com/repos/jbonofre/incubator-beam/issues/comments{/number}","contents_url":"https://api.github.com/repos/jbonofre/incubator-beam/contents/{+path}","compare_url":"https://api.github.com/repos/jbonofre/incubator-beam/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jbonofre/incubator-beam/merges","archive_url":"https://api.github.com/repos/jbonofre/incubator-beam/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jbonofre/incubator-beam/downloads","issues_url":"https://api.github.com/repos/jbonofre/incubator-beam/issues{/number}","pulls_url":"https://api.github.com/repos/jbonofre/incubator-beam/pulls{/number}","milestones_url":"https://api.github.com/repos/jbonofre/incubator-beam/milestones{/number}","notifications_url":"https://api.github.com/repos/jbonofre/incubator-beam/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jbonofre/incubator-beam/labels{/name}","releases_url":"https://api.github.com/repos/jbonofre/incubator-beam/releases{/id}","deployments_url":"https://api.github.com/repos/jbonofre/incubator-beam/deployments","created_at":"2016-03-15T00:52:43Z","updated_at":"2016-03-15T00:52:46Z","pushed_at":"2016-05-31T20:19:24Z","git_url":"git://github.com/jbonofre/incubator-beam.git","ssh_url":"git@github.com:jbonofre/incubator-beam.git","clone_url":"https://github.com/jbonofre/incubator-beam.git","svn_url":"https://github.com/jbonofre/incubator-beam","homepage":null,"size":14410,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"2ffecfda2313a609f6db70b942d6d9a8984f464a","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":50904245,"name":"incubator-beam","full_name":"apache/incubator-beam","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/incubator-beam","description":"Mirror of Apache Beam (Incubating)","fork":false,"url":"https://api.github.com/repos/apache/incubator-beam","forks_url":"https://api.github.com/repos/apache/incubator-beam/forks","keys_url":"https://api.github.com/repos/apache/incubator-beam/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/incubator-beam/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/incubator-beam/teams","hooks_url":"https://api.github.com/repos/apache/incubator-beam/hooks","issue_events_url":"https://api.github.com/repos/apache/incubator-beam/issues/events{/number}","events_url":"https://api.github.com/repos/apache/incubator-beam/events","assignees_url":"https://api.github.com/repos/apache/incubator-beam/assignees{/user}","branches_url":"https://api.github.com/repos/apache/incubator-beam/branches{/branch}","tags_url":"https://api.github.com/repos/apache/incubator-beam/tags","blobs_url":"https://api.github.com/repos/apache/incubator-beam/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/incubator-beam/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/incubator-beam/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/incubator-beam/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/incubator-beam/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/incubator-beam/languages","stargazers_url":"https://api.github.com/repos/apache/incubator-beam/stargazers","contributors_url":"https://api.github.com/repos/apache/incubator-beam/contributors","subscribers_url":"https://api.github.com/repos/apache/incubator-beam/subscribers","subscription_url":"https://api.github.com/repos/apache/incubator-beam/subscription","commits_url":"https://api.github.com/repos/apache/incubator-beam/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/incubator-beam/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/incubator-beam/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/incubator-beam/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/incubator-beam/contents/{+path}","compare_url":"https://api.github.com/repos/apache/incubator-beam/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/incubator-beam/merges","archive_url":"https://api.github.com/repos/apache/incubator-beam/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/incubator-beam/downloads","issues_url":"https://api.github.com/repos/apache/incubator-beam/issues{/number}","pulls_url":"https://api.github.com/repos/apache/incubator-beam/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/incubator-beam/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/incubator-beam/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/incubator-beam/labels{/name}","releases_url":"https://api.github.com/repos/apache/incubator-beam/releases{/id}","deployments_url":"https://api.github.com/repos/apache/incubator-beam/deployments","created_at":"2016-02-02T08:00:06Z","updated_at":"2016-05-31T12:28:51Z","pushed_at":"2016-06-02T19:28:32Z","git_url":"git://github.com/apache/incubator-beam.git","ssh_url":"git@github.com:apache/incubator-beam.git","clone_url":"https://github.com/apache/incubator-beam.git","svn_url":"https://github.com/apache/incubator-beam","homepage":null,"size":17542,"stargazers_count":209,"watchers_count":209,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":109,"mirror_url":"git://git.apache.org/incubator-beam.git","open_issues_count":36,"forks":109,"open_issues":36,"watchers":209,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-beam/pulls/400"},"html":{"href":"https://github.com/apache/incubator-beam/pull/400"},"issue":{"href":"https://api.github.com/repos/apache/incubator-beam/issues/400"},"comments":{"href":"https://api.github.com/repos/apache/incubator-beam/issues/400/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/incubator-beam/pulls/400/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/incubator-beam/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/incubator-beam/pulls/400/commits"},"statuses":{"href":"https://api.github.com/repos/apache/incubator-beam/statuses/ce2dcec24b0c849144b5c2c9d7085983e979bc26"}}}}
{"actor":{"display_login":"dhalperi"}}