{"action":"created","comment":{"url":"https://api.github.com/repos/apache/parquet-mr/pulls/comments/41079380","id":41079380,"diff_hunk":"@@ -0,0 +1,86 @@\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+ * WITHOUT 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.parquet.io;\n+\n+import org.apache.parquet.column.ColumnDescriptor;\n+import org.apache.parquet.io.vector.BooleanColumnVector;\n+import org.apache.parquet.io.vector.ByteColumnVector;\n+import org.apache.parquet.io.vector.DoubleColumnVector;\n+import org.apache.parquet.io.vector.FloatColumnVector;\n+import org.apache.parquet.io.vector.IntColumnVector;\n+import org.apache.parquet.io.vector.LongColumnVector;\n+import org.apache.parquet.io.vector.ObjectColumnVector;\n+\n+public abstract class ColumnVector\n+{\n+  public static final int DEFAULT_VECTOR_LENGTH = 1024;\n+  protected Class valueType;\n+  public final boolean [] isNull;\n+  private int numValues;\n+\n+  public ColumnVector() {\n+    this.isNull = new boolean[DEFAULT_VECTOR_LENGTH];\n+  }\n+\n+  /**\n+   * @return the type of the elements in this vector\n+   */\n+  public Class getType(){\n+    return valueType;\n+  }\n+\n+  /**\n+   * @return the number of values in this vector\n+   */\n+  public int size() {\n+    return numValues;\n+  }\n+\n+  void setNumberOfValues(int numValues)\n+  {","path":"parquet-column/src/main/java/org/apache/parquet/io/ColumnVector.java","position":null,"original_position":55,"commit_id":"af1dd2b84d1358f40e2bf208169768030ef1e6c6","original_commit_id":"88330f4d96c30c06c11794a31f13952b6aec3407","user":{"login":"nezihyigitbasi","id":1223839,"avatar_url":"https://avatars.githubusercontent.com/u/1223839?v=3","gravatar_id":"","url":"https://api.github.com/users/nezihyigitbasi","html_url":"https://github.com/nezihyigitbasi","followers_url":"https://api.github.com/users/nezihyigitbasi/followers","following_url":"https://api.github.com/users/nezihyigitbasi/following{/other_user}","gists_url":"https://api.github.com/users/nezihyigitbasi/gists{/gist_id}","starred_url":"https://api.github.com/users/nezihyigitbasi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nezihyigitbasi/subscriptions","organizations_url":"https://api.github.com/users/nezihyigitbasi/orgs","repos_url":"https://api.github.com/users/nezihyigitbasi/repos","events_url":"https://api.github.com/users/nezihyigitbasi/events{/privacy}","received_events_url":"https://api.github.com/users/nezihyigitbasi/received_events","type":"User","site_admin":false},"body":"fixed","created_at":"2015-10-02T23:52:17Z","updated_at":"2015-10-02T23:52:17Z","html_url":"https://github.com/apache/parquet-mr/pull/257#discussion_r41079380","pull_request_url":"https://api.github.com/repos/apache/parquet-mr/pulls/257","_links":{"self":{"href":"https://api.github.com/repos/apache/parquet-mr/pulls/comments/41079380"},"html":{"href":"https://github.com/apache/parquet-mr/pull/257#discussion_r41079380"},"pull_request":{"href":"https://api.github.com/repos/apache/parquet-mr/pulls/257"}}},"pull_request":{"url":"https://api.github.com/repos/apache/parquet-mr/pulls/257","id":42382760,"html_url":"https://github.com/apache/parquet-mr/pull/257","diff_url":"https://github.com/apache/parquet-mr/pull/257.diff","patch_url":"https://github.com/apache/parquet-mr/pull/257.patch","issue_url":"https://api.github.com/repos/apache/parquet-mr/issues/257","number":257,"state":"open","locked":false,"title":"PARQUET-131: Vectorized reader initial implementation","user":{"login":"nezihyigitbasi","id":1223839,"avatar_url":"https://avatars.githubusercontent.com/u/1223839?v=3","gravatar_id":"","url":"https://api.github.com/users/nezihyigitbasi","html_url":"https://github.com/nezihyigitbasi","followers_url":"https://api.github.com/users/nezihyigitbasi/followers","following_url":"https://api.github.com/users/nezihyigitbasi/following{/other_user}","gists_url":"https://api.github.com/users/nezihyigitbasi/gists{/gist_id}","starred_url":"https://api.github.com/users/nezihyigitbasi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nezihyigitbasi/subscriptions","organizations_url":"https://api.github.com/users/nezihyigitbasi/orgs","repos_url":"https://api.github.com/users/nezihyigitbasi/repos","events_url":"https://api.github.com/users/nezihyigitbasi/events{/privacy}","received_events_url":"https://api.github.com/users/nezihyigitbasi/received_events","type":"User","site_admin":false},"body":"This PR implements an initial version of a vectorized reader and adds various benchmarks (`VectorizedReadBenchmarks`) and unit tests (`ParquetVectorReaderTestSuite`) for that. \r\n\r\nTwo new public methods are added to the `ParquetReader` and `ParquetRecordReader` classes:\r\n- `RowBatch nextBatch(RowBatch previous, Class<T> clazz)`: used for reading complex types/arbitrary objects and calls the converters to materialize the records.\r\n- `RowBatch nextBatch(RowBatch previous)`: used for reading primitive types and does not call the converters at all.\r\n\r\n@rdblue and @julienledem can you please review?\r\n\r\n**Ack**: Thank you @zhenxiao and @dongche for your contributions.","created_at":"2015-08-13T18:28:52Z","updated_at":"2015-10-02T23:52:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4826462cb3ae738db5455716300701a0784cffbc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/parquet-mr/pulls/257/commits","review_comments_url":"https://api.github.com/repos/apache/parquet-mr/pulls/257/comments","review_comment_url":"https://api.github.com/repos/apache/parquet-mr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/parquet-mr/issues/257/comments","statuses_url":"https://api.github.com/repos/apache/parquet-mr/statuses/af1dd2b84d1358f40e2bf208169768030ef1e6c6","head":{"label":"nezihyigitbasi-nflx:vector","ref":"vector","sha":"af1dd2b84d1358f40e2bf208169768030ef1e6c6","user":{"login":"nezihyigitbasi-nflx","id":10408233,"avatar_url":"https://avatars.githubusercontent.com/u/10408233?v=3","gravatar_id":"","url":"https://api.github.com/users/nezihyigitbasi-nflx","html_url":"https://github.com/nezihyigitbasi-nflx","followers_url":"https://api.github.com/users/nezihyigitbasi-nflx/followers","following_url":"https://api.github.com/users/nezihyigitbasi-nflx/following{/other_user}","gists_url":"https://api.github.com/users/nezihyigitbasi-nflx/gists{/gist_id}","starred_url":"https://api.github.com/users/nezihyigitbasi-nflx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nezihyigitbasi-nflx/subscriptions","organizations_url":"https://api.github.com/users/nezihyigitbasi-nflx/orgs","repos_url":"https://api.github.com/users/nezihyigitbasi-nflx/repos","events_url":"https://api.github.com/users/nezihyigitbasi-nflx/events{/privacy}","received_events_url":"https://api.github.com/users/nezihyigitbasi-nflx/received_events","type":"Organization","site_admin":false},"repo":{"id":37740723,"name":"parquet-mr","full_name":"nezihyigitbasi-nflx/parquet-mr","owner":{"login":"nezihyigitbasi-nflx","id":10408233,"avatar_url":"https://avatars.githubusercontent.com/u/10408233?v=3","gravatar_id":"","url":"https://api.github.com/users/nezihyigitbasi-nflx","html_url":"https://github.com/nezihyigitbasi-nflx","followers_url":"https://api.github.com/users/nezihyigitbasi-nflx/followers","following_url":"https://api.github.com/users/nezihyigitbasi-nflx/following{/other_user}","gists_url":"https://api.github.com/users/nezihyigitbasi-nflx/gists{/gist_id}","starred_url":"https://api.github.com/users/nezihyigitbasi-nflx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nezihyigitbasi-nflx/subscriptions","organizations_url":"https://api.github.com/users/nezihyigitbasi-nflx/orgs","repos_url":"https://api.github.com/users/nezihyigitbasi-nflx/repos","events_url":"https://api.github.com/users/nezihyigitbasi-nflx/events{/privacy}","received_events_url":"https://api.github.com/users/nezihyigitbasi-nflx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nezihyigitbasi-nflx/parquet-mr","description":"Mirror of Apache Parquet","fork":true,"url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr","forks_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/forks","keys_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/teams","hooks_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/hooks","issue_events_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/issues/events{/number}","events_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/events","assignees_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/assignees{/user}","branches_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/branches{/branch}","tags_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/tags","blobs_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/git/refs{/sha}","trees_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/statuses/{sha}","languages_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/languages","stargazers_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/stargazers","contributors_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/contributors","subscribers_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/subscribers","subscription_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/subscription","commits_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/commits{/sha}","git_commits_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/git/commits{/sha}","comments_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/comments{/number}","issue_comment_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/issues/comments{/number}","contents_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/contents/{+path}","compare_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/merges","archive_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/downloads","issues_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/issues{/number}","pulls_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/pulls{/number}","milestones_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/milestones{/number}","notifications_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/labels{/name}","releases_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/releases{/id}","created_at":"2015-06-19T19:06:28Z","updated_at":"2015-06-19T19:06:31Z","pushed_at":"2015-10-02T23:52:01Z","git_url":"git://github.com/nezihyigitbasi-nflx/parquet-mr.git","ssh_url":"git@github.com:nezihyigitbasi-nflx/parquet-mr.git","clone_url":"https://github.com/nezihyigitbasi-nflx/parquet-mr.git","svn_url":"https://github.com/nezihyigitbasi-nflx/parquet-mr","homepage":null,"size":13397,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"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":"c3819688c48480ec75a9563c71f18ea755e34620","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":20675636,"name":"parquet-mr","full_name":"apache/parquet-mr","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/parquet-mr","description":"Mirror of Apache Parquet","fork":false,"url":"https://api.github.com/repos/apache/parquet-mr","forks_url":"https://api.github.com/repos/apache/parquet-mr/forks","keys_url":"https://api.github.com/repos/apache/parquet-mr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/parquet-mr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/parquet-mr/teams","hooks_url":"https://api.github.com/repos/apache/parquet-mr/hooks","issue_events_url":"https://api.github.com/repos/apache/parquet-mr/issues/events{/number}","events_url":"https://api.github.com/repos/apache/parquet-mr/events","assignees_url":"https://api.github.com/repos/apache/parquet-mr/assignees{/user}","branches_url":"https://api.github.com/repos/apache/parquet-mr/branches{/branch}","tags_url":"https://api.github.com/repos/apache/parquet-mr/tags","blobs_url":"https://api.github.com/repos/apache/parquet-mr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/parquet-mr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/parquet-mr/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/parquet-mr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/parquet-mr/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/parquet-mr/languages","stargazers_url":"https://api.github.com/repos/apache/parquet-mr/stargazers","contributors_url":"https://api.github.com/repos/apache/parquet-mr/contributors","subscribers_url":"https://api.github.com/repos/apache/parquet-mr/subscribers","subscription_url":"https://api.github.com/repos/apache/parquet-mr/subscription","commits_url":"https://api.github.com/repos/apache/parquet-mr/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/parquet-mr/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/parquet-mr/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/parquet-mr/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/parquet-mr/contents/{+path}","compare_url":"https://api.github.com/repos/apache/parquet-mr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/parquet-mr/merges","archive_url":"https://api.github.com/repos/apache/parquet-mr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/parquet-mr/downloads","issues_url":"https://api.github.com/repos/apache/parquet-mr/issues{/number}","pulls_url":"https://api.github.com/repos/apache/parquet-mr/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/parquet-mr/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/parquet-mr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/parquet-mr/labels{/name}","releases_url":"https://api.github.com/repos/apache/parquet-mr/releases{/id}","created_at":"2014-06-10T07:00:07Z","updated_at":"2015-09-23T16:48:50Z","pushed_at":"2015-10-02T23:52:01Z","git_url":"git://github.com/apache/parquet-mr.git","ssh_url":"git@github.com:apache/parquet-mr.git","clone_url":"https://github.com/apache/parquet-mr.git","svn_url":"https://github.com/apache/parquet-mr","homepage":null,"size":89175,"stargazers_count":140,"watchers_count":140,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":158,"mirror_url":"git://git.apache.org/incubator-parquet-mr.git","open_issues_count":55,"forks":158,"open_issues":55,"watchers":140,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/parquet-mr/pulls/257"},"html":{"href":"https://github.com/apache/parquet-mr/pull/257"},"issue":{"href":"https://api.github.com/repos/apache/parquet-mr/issues/257"},"comments":{"href":"https://api.github.com/repos/apache/parquet-mr/issues/257/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/parquet-mr/pulls/257/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/parquet-mr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/parquet-mr/pulls/257/commits"},"statuses":{"href":"https://api.github.com/repos/apache/parquet-mr/statuses/af1dd2b84d1358f40e2bf208169768030ef1e6c6"}}}}