{"action":"created","comment":{"url":"https://api.github.com/repos/apache/flink/pulls/comments/67295498","id":67295498,"diff_hunk":"@@ -0,0 +1,152 @@\n+/*\n+ * Licensed to the Apache Software Foundation (ASF) under one\n+ * or more contributor license agreements.  See the NOTICE file\n+ * distributed with this work for additional information\n+ * regarding copyright ownership.  The ASF licenses this file\n+ * to you under the Apache License, Version 2.0 (the\n+ * \"License\"); you may not use this file except in compliance\n+ * with the License.  You may obtain a copy of the License at\n+ *\n+ *     http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHRow WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+package org.apache.flink.api.java.io;\n+\n+import org.apache.flink.annotation.Internal;\n+import org.apache.flink.api.common.ExecutionConfig;\n+import org.apache.flink.api.common.io.ParseException;\n+import org.apache.flink.api.table.Row;\n+import org.apache.flink.api.table.typeutils.RowSerializer;\n+import org.apache.flink.api.table.typeutils.RowTypeInfo;\n+import org.apache.flink.core.fs.Path;\n+import org.apache.flink.types.parser.FieldParser;\n+import org.apache.flink.types.parser.FieldParser.ParseErrorState;\n+\n+@Internal\n+public class RowCsvInputFormat extends CsvInputFormat<Row> {\n+\n+\tprivate static final long serialVersionUID = 1L;\n+\n+\tprivate RowSerializer rowSerializer;\n+\n+\tpublic RowCsvInputFormat(Path filePath, RowTypeInfo rowTypeInfo) {\n+\t\tthis(filePath, DEFAULT_LINE_DELIMITER, DEFAULT_FIELD_DELIMITER, rowTypeInfo);\n+\t}\n+\n+\tpublic RowCsvInputFormat(Path filePath, String lineDelimiter, String fieldDelimiter, RowTypeInfo rowTypeInfo) {\n+\t\tthis(filePath, lineDelimiter, fieldDelimiter, rowTypeInfo, createDefaultMask(rowTypeInfo.getArity()));\n+\t}\n+\n+\tpublic RowCsvInputFormat(Path filePath, RowTypeInfo rowTypeInfo, int[] includedFieldsMask) {\n+\t\tthis(filePath, DEFAULT_LINE_DELIMITER, DEFAULT_FIELD_DELIMITER, rowTypeInfo, includedFieldsMask);\n+\t}\n+\n+\tpublic RowCsvInputFormat(Path filePath, String lineDelimiter, String fieldDelimiter, RowTypeInfo rowTypeInfo,\n+\t\t\tint[] includedFieldsMask) {\n+\t\tsuper(filePath);\n+\t\tboolean[] mask = (includedFieldsMask == null) ? createDefaultMask(rowTypeInfo.getArity())\n+\t\t\t\t: toBooleanMask(includedFieldsMask);\n+\t\tconfigure(lineDelimiter, fieldDelimiter, rowTypeInfo, mask);\n+\t}\n+\n+\tpublic RowCsvInputFormat(Path filePath, RowTypeInfo rowTypeInfo, boolean[] includedFieldsMask) {\n+\t\tthis(filePath, DEFAULT_LINE_DELIMITER, DEFAULT_FIELD_DELIMITER, rowTypeInfo, includedFieldsMask);\n+\t}\n+\n+\tpublic RowCsvInputFormat(Path filePath, String lineDelimiter, String fieldDelimiter, RowTypeInfo rowTypeInfo,\n+\t\t\tboolean[] includedFieldsMask) {\n+\t\tsuper(filePath);\n+\t\tconfigure(lineDelimiter, fieldDelimiter, rowTypeInfo, includedFieldsMask);","path":"flink-libraries/flink-table/src/main/java/org/apache/flink/api/java/io/RowCsvInputFormat.java","position":64,"original_position":64,"commit_id":"5bb2814d638627853b3784a51af31684cd3146b4","original_commit_id":"5bb2814d638627853b3784a51af31684cd3146b4","user":{"login":"fpompermaier","id":3776037,"avatar_url":"https://avatars.githubusercontent.com/u/3776037?v=3","gravatar_id":"","url":"https://api.github.com/users/fpompermaier","html_url":"https://github.com/fpompermaier","followers_url":"https://api.github.com/users/fpompermaier/followers","following_url":"https://api.github.com/users/fpompermaier/following{/other_user}","gists_url":"https://api.github.com/users/fpompermaier/gists{/gist_id}","starred_url":"https://api.github.com/users/fpompermaier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fpompermaier/subscriptions","organizations_url":"https://api.github.com/users/fpompermaier/orgs","repos_url":"https://api.github.com/users/fpompermaier/repos","events_url":"https://api.github.com/users/fpompermaier/events{/privacy}","received_events_url":"https://api.github.com/users/fpompermaier/received_events","type":"User","site_admin":false},"body":"ok","created_at":"2016-06-16T07:02:29Z","updated_at":"2016-06-16T07:02:29Z","html_url":"https://github.com/apache/flink/pull/1989#discussion_r67295498","pull_request_url":"https://api.github.com/repos/apache/flink/pulls/1989","_links":{"self":{"href":"https://api.github.com/repos/apache/flink/pulls/comments/67295498"},"html":{"href":"https://github.com/apache/flink/pull/1989#discussion_r67295498"},"pull_request":{"href":"https://api.github.com/repos/apache/flink/pulls/1989"}}},"pull_request":{"url":"https://api.github.com/repos/apache/flink/pulls/1989","id":70022213,"html_url":"https://github.com/apache/flink/pull/1989","diff_url":"https://github.com/apache/flink/pull/1989.diff","patch_url":"https://github.com/apache/flink/pull/1989.patch","issue_url":"https://api.github.com/repos/apache/flink/issues/1989","number":1989,"state":"open","locked":false,"title":"FLINK-3901 - Added CsvRowInputFormat","user":{"login":"fpompermaier","id":3776037,"avatar_url":"https://avatars.githubusercontent.com/u/3776037?v=3","gravatar_id":"","url":"https://api.github.com/users/fpompermaier","html_url":"https://github.com/fpompermaier","followers_url":"https://api.github.com/users/fpompermaier/followers","following_url":"https://api.github.com/users/fpompermaier/following{/other_user}","gists_url":"https://api.github.com/users/fpompermaier/gists{/gist_id}","starred_url":"https://api.github.com/users/fpompermaier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fpompermaier/subscriptions","organizations_url":"https://api.github.com/users/fpompermaier/orgs","repos_url":"https://api.github.com/users/fpompermaier/repos","events_url":"https://api.github.com/users/fpompermaier/events{/privacy}","received_events_url":"https://api.github.com/users/fpompermaier/received_events","type":"User","site_admin":false},"body":"Thanks for contributing to Apache Flink. Before you open your pull request, please take the following check list into consideration.\r\nIf your changes take all of the items into account, feel free to open your pull request. For more information and/or questions please refer to the [How To Contribute guide](http://flink.apache.org/how-to-contribute.html).\r\nIn addition to going through the list, please provide a meaningful description of your changes.\r\n\r\n- [x] General\r\n  - The pull request references the related JIRA issue (\"[FLINK-XXX] Jira title text\")\r\n  - The pull request addresses only one issue\r\n  - Each commit in the PR has a meaningful commit message (including the JIRA id)\r\n\r\n- [x] Documentation\r\n  - Documentation has been added for new functionality\r\n  - Old documentation affected by the pull request has been updated\r\n  - JavaDoc for public methods has been added\r\n\r\n- [x] Tests & Build\r\n  - Functionality added by the pull request is covered by tests\r\n  - `mvn clean verify` has been executed successfully locally or a Travis build has passed\r\n\r\n","created_at":"2016-05-13T16:21:26Z","updated_at":"2016-06-16T07:02:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5031446a3953ada184403cfccb51af94f909f0c0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/flink/pulls/1989/commits","review_comments_url":"https://api.github.com/repos/apache/flink/pulls/1989/comments","review_comment_url":"https://api.github.com/repos/apache/flink/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/flink/issues/1989/comments","statuses_url":"https://api.github.com/repos/apache/flink/statuses/5bb2814d638627853b3784a51af31684cd3146b4","head":{"label":"fpompermaier:FLINK-3901","ref":"FLINK-3901","sha":"5bb2814d638627853b3784a51af31684cd3146b4","user":{"login":"fpompermaier","id":3776037,"avatar_url":"https://avatars.githubusercontent.com/u/3776037?v=3","gravatar_id":"","url":"https://api.github.com/users/fpompermaier","html_url":"https://github.com/fpompermaier","followers_url":"https://api.github.com/users/fpompermaier/followers","following_url":"https://api.github.com/users/fpompermaier/following{/other_user}","gists_url":"https://api.github.com/users/fpompermaier/gists{/gist_id}","starred_url":"https://api.github.com/users/fpompermaier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fpompermaier/subscriptions","organizations_url":"https://api.github.com/users/fpompermaier/orgs","repos_url":"https://api.github.com/users/fpompermaier/repos","events_url":"https://api.github.com/users/fpompermaier/events{/privacy}","received_events_url":"https://api.github.com/users/fpompermaier/received_events","type":"User","site_admin":false},"repo":{"id":34671677,"name":"flink","full_name":"fpompermaier/flink","owner":{"login":"fpompermaier","id":3776037,"avatar_url":"https://avatars.githubusercontent.com/u/3776037?v=3","gravatar_id":"","url":"https://api.github.com/users/fpompermaier","html_url":"https://github.com/fpompermaier","followers_url":"https://api.github.com/users/fpompermaier/followers","following_url":"https://api.github.com/users/fpompermaier/following{/other_user}","gists_url":"https://api.github.com/users/fpompermaier/gists{/gist_id}","starred_url":"https://api.github.com/users/fpompermaier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fpompermaier/subscriptions","organizations_url":"https://api.github.com/users/fpompermaier/orgs","repos_url":"https://api.github.com/users/fpompermaier/repos","events_url":"https://api.github.com/users/fpompermaier/events{/privacy}","received_events_url":"https://api.github.com/users/fpompermaier/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fpompermaier/flink","description":"Mirror of Apache Flink","fork":true,"url":"https://api.github.com/repos/fpompermaier/flink","forks_url":"https://api.github.com/repos/fpompermaier/flink/forks","keys_url":"https://api.github.com/repos/fpompermaier/flink/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fpompermaier/flink/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fpompermaier/flink/teams","hooks_url":"https://api.github.com/repos/fpompermaier/flink/hooks","issue_events_url":"https://api.github.com/repos/fpompermaier/flink/issues/events{/number}","events_url":"https://api.github.com/repos/fpompermaier/flink/events","assignees_url":"https://api.github.com/repos/fpompermaier/flink/assignees{/user}","branches_url":"https://api.github.com/repos/fpompermaier/flink/branches{/branch}","tags_url":"https://api.github.com/repos/fpompermaier/flink/tags","blobs_url":"https://api.github.com/repos/fpompermaier/flink/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fpompermaier/flink/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fpompermaier/flink/git/refs{/sha}","trees_url":"https://api.github.com/repos/fpompermaier/flink/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fpompermaier/flink/statuses/{sha}","languages_url":"https://api.github.com/repos/fpompermaier/flink/languages","stargazers_url":"https://api.github.com/repos/fpompermaier/flink/stargazers","contributors_url":"https://api.github.com/repos/fpompermaier/flink/contributors","subscribers_url":"https://api.github.com/repos/fpompermaier/flink/subscribers","subscription_url":"https://api.github.com/repos/fpompermaier/flink/subscription","commits_url":"https://api.github.com/repos/fpompermaier/flink/commits{/sha}","git_commits_url":"https://api.github.com/repos/fpompermaier/flink/git/commits{/sha}","comments_url":"https://api.github.com/repos/fpompermaier/flink/comments{/number}","issue_comment_url":"https://api.github.com/repos/fpompermaier/flink/issues/comments{/number}","contents_url":"https://api.github.com/repos/fpompermaier/flink/contents/{+path}","compare_url":"https://api.github.com/repos/fpompermaier/flink/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fpompermaier/flink/merges","archive_url":"https://api.github.com/repos/fpompermaier/flink/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fpompermaier/flink/downloads","issues_url":"https://api.github.com/repos/fpompermaier/flink/issues{/number}","pulls_url":"https://api.github.com/repos/fpompermaier/flink/pulls{/number}","milestones_url":"https://api.github.com/repos/fpompermaier/flink/milestones{/number}","notifications_url":"https://api.github.com/repos/fpompermaier/flink/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fpompermaier/flink/labels{/name}","releases_url":"https://api.github.com/repos/fpompermaier/flink/releases{/id}","deployments_url":"https://api.github.com/repos/fpompermaier/flink/deployments","created_at":"2015-04-27T14:32:03Z","updated_at":"2016-04-13T14:35:41Z","pushed_at":"2016-06-03T08:39:12Z","git_url":"git://github.com/fpompermaier/flink.git","ssh_url":"git@github.com:fpompermaier/flink.git","clone_url":"https://github.com/fpompermaier/flink.git","svn_url":"https://github.com/fpompermaier/flink","homepage":null,"size":87475,"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":"96b353d98f6b6d441ebedf69ec12cfa333a1d7c9","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":20587599,"name":"flink","full_name":"apache/flink","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/flink","description":"Mirror of Apache Flink","fork":false,"url":"https://api.github.com/repos/apache/flink","forks_url":"https://api.github.com/repos/apache/flink/forks","keys_url":"https://api.github.com/repos/apache/flink/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/flink/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/flink/teams","hooks_url":"https://api.github.com/repos/apache/flink/hooks","issue_events_url":"https://api.github.com/repos/apache/flink/issues/events{/number}","events_url":"https://api.github.com/repos/apache/flink/events","assignees_url":"https://api.github.com/repos/apache/flink/assignees{/user}","branches_url":"https://api.github.com/repos/apache/flink/branches{/branch}","tags_url":"https://api.github.com/repos/apache/flink/tags","blobs_url":"https://api.github.com/repos/apache/flink/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/flink/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/flink/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/flink/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/flink/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/flink/languages","stargazers_url":"https://api.github.com/repos/apache/flink/stargazers","contributors_url":"https://api.github.com/repos/apache/flink/contributors","subscribers_url":"https://api.github.com/repos/apache/flink/subscribers","subscription_url":"https://api.github.com/repos/apache/flink/subscription","commits_url":"https://api.github.com/repos/apache/flink/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/flink/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/flink/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/flink/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/flink/contents/{+path}","compare_url":"https://api.github.com/repos/apache/flink/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/flink/merges","archive_url":"https://api.github.com/repos/apache/flink/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/flink/downloads","issues_url":"https://api.github.com/repos/apache/flink/issues{/number}","pulls_url":"https://api.github.com/repos/apache/flink/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/flink/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/flink/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/flink/labels{/name}","releases_url":"https://api.github.com/repos/apache/flink/releases{/id}","deployments_url":"https://api.github.com/repos/apache/flink/deployments","created_at":"2014-06-07T07:00:10Z","updated_at":"2016-06-16T05:56:10Z","pushed_at":"2016-06-15T20:08:07Z","git_url":"git://github.com/apache/flink.git","ssh_url":"git@github.com:apache/flink.git","clone_url":"https://github.com/apache/flink.git","svn_url":"https://github.com/apache/flink","homepage":null,"size":119073,"stargazers_count":1362,"watchers_count":1362,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":880,"mirror_url":"git://git.apache.org/flink.git","open_issues_count":110,"forks":880,"open_issues":110,"watchers":1362,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/flink/pulls/1989"},"html":{"href":"https://github.com/apache/flink/pull/1989"},"issue":{"href":"https://api.github.com/repos/apache/flink/issues/1989"},"comments":{"href":"https://api.github.com/repos/apache/flink/issues/1989/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/flink/pulls/1989/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/flink/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/flink/pulls/1989/commits"},"statuses":{"href":"https://api.github.com/repos/apache/flink/statuses/5bb2814d638627853b3784a51af31684cd3146b4"}}}}
{"actor":{"display_login":"fpompermaier"}}