{"action":"created","comment":{"url":"https://api.github.com/repos/apache/arrow/pulls/comments/74851262","id":74851262,"diff_hunk":"@@ -0,0 +1,43 @@\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+ * <p>\n+ * http://www.apache.org/licenses/LICENSE-2.0\n+ * <p>\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.arrow.vector;\n+\n+import com.google.common.base.Preconditions;\n+import com.google.flatbuffers.FlatBufferBuilder;\n+import org.apache.arrow.flatbuf.Field;\n+import org.apache.arrow.flatbuf.Int;\n+import org.apache.arrow.flatbuf.Type;\n+\n+public class Types {\n+  public static void main(String[] args) {\n+    FlatBufferBuilder b = new FlatBufferBuilder();\n+    int nameOffset = b.createString(\"name\");\n+    int typeOffset = Int.createInt(b, 32, true);\n+    int[] data = new int[] {};\n+    int childrenOffset = Field.createChildrenVector(b, data);\n+    int field = Field.createField(b, nameOffset, true, Type.Int, typeOffset, childrenOffset);\n+    b.finish(field);\n+\n+    Field f = Field.getRootAsField(b.dataBuffer());\n+    assert \"name\".equals(f.name());\n+    Int integer = (Int) f.type(new Int());\n+    Preconditions.checkState(f.typeType() == Type.Int);\n+    Preconditions.checkState(integer.bitWidth() == 32);\n+    Preconditions.checkState(f.childrenLength() == 0);\n+  }","path":"java/vector/src/main/java/org/apache/arrow/vector/Types.java","position":42,"original_position":42,"commit_id":"256facd1d9376ed5377684ae6d5dca0647ef3e04","original_commit_id":"256facd1d9376ed5377684ae6d5dca0647ef3e04","user":{"login":"julienledem","id":367841,"avatar_url":"https://avatars.githubusercontent.com/u/367841?v=3","gravatar_id":"","url":"https://api.github.com/users/julienledem","html_url":"https://github.com/julienledem","followers_url":"https://api.github.com/users/julienledem/followers","following_url":"https://api.github.com/users/julienledem/following{/other_user}","gists_url":"https://api.github.com/users/julienledem/gists{/gist_id}","starred_url":"https://api.github.com/users/julienledem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julienledem/subscriptions","organizations_url":"https://api.github.com/users/julienledem/orgs","repos_url":"https://api.github.com/users/julienledem/repos","events_url":"https://api.github.com/users/julienledem/events{/privacy}","received_events_url":"https://api.github.com/users/julienledem/received_events","type":"User","site_admin":false},"body":"should this be a unit test?","created_at":"2016-08-15T23:01:41Z","updated_at":"2016-08-15T23:01:41Z","html_url":"https://github.com/apache/arrow/pull/99#discussion_r74851262","pull_request_url":"https://api.github.com/repos/apache/arrow/pulls/99","_links":{"self":{"href":"https://api.github.com/repos/apache/arrow/pulls/comments/74851262"},"html":{"href":"https://github.com/apache/arrow/pull/99#discussion_r74851262"},"pull_request":{"href":"https://api.github.com/repos/apache/arrow/pulls/99"}}},"pull_request":{"url":"https://api.github.com/repos/apache/arrow/pulls/99","id":76658358,"html_url":"https://github.com/apache/arrow/pull/99","diff_url":"https://github.com/apache/arrow/pull/99.diff","patch_url":"https://github.com/apache/arrow/pull/99.patch","issue_url":"https://api.github.com/repos/apache/arrow/issues/99","number":99,"state":"open","locked":false,"title":"Use Flatbuffer Field type instead of MaterializedField","user":{"login":"StevenMPhillips","id":3360419,"avatar_url":"https://avatars.githubusercontent.com/u/3360419?v=3","gravatar_id":"","url":"https://api.github.com/users/StevenMPhillips","html_url":"https://github.com/StevenMPhillips","followers_url":"https://api.github.com/users/StevenMPhillips/followers","following_url":"https://api.github.com/users/StevenMPhillips/following{/other_user}","gists_url":"https://api.github.com/users/StevenMPhillips/gists{/gist_id}","starred_url":"https://api.github.com/users/StevenMPhillips/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StevenMPhillips/subscriptions","organizations_url":"https://api.github.com/users/StevenMPhillips/orgs","repos_url":"https://api.github.com/users/StevenMPhillips/repos","events_url":"https://api.github.com/users/StevenMPhillips/events{/privacy}","received_events_url":"https://api.github.com/users/StevenMPhillips/received_events","type":"User","site_admin":false},"body":"Remove MaterializedField, MajorType, RepeatedTypes","created_at":"2016-07-07T20:18:21Z","updated_at":"2016-08-15T23:01:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"052c91d613cf2c40e598ec2ece0f5eba8ff202bf","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/apache/arrow/pulls/99/commits","review_comments_url":"https://api.github.com/repos/apache/arrow/pulls/99/comments","review_comment_url":"https://api.github.com/repos/apache/arrow/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/arrow/issues/99/comments","statuses_url":"https://api.github.com/repos/apache/arrow/statuses/256facd1d9376ed5377684ae6d5dca0647ef3e04","head":{"label":"StevenMPhillips:fields","ref":"fields","sha":"256facd1d9376ed5377684ae6d5dca0647ef3e04","user":{"login":"StevenMPhillips","id":3360419,"avatar_url":"https://avatars.githubusercontent.com/u/3360419?v=3","gravatar_id":"","url":"https://api.github.com/users/StevenMPhillips","html_url":"https://github.com/StevenMPhillips","followers_url":"https://api.github.com/users/StevenMPhillips/followers","following_url":"https://api.github.com/users/StevenMPhillips/following{/other_user}","gists_url":"https://api.github.com/users/StevenMPhillips/gists{/gist_id}","starred_url":"https://api.github.com/users/StevenMPhillips/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StevenMPhillips/subscriptions","organizations_url":"https://api.github.com/users/StevenMPhillips/orgs","repos_url":"https://api.github.com/users/StevenMPhillips/repos","events_url":"https://api.github.com/users/StevenMPhillips/events{/privacy}","received_events_url":"https://api.github.com/users/StevenMPhillips/received_events","type":"User","site_admin":false},"repo":{"id":52549424,"name":"arrow","full_name":"StevenMPhillips/arrow","owner":{"login":"StevenMPhillips","id":3360419,"avatar_url":"https://avatars.githubusercontent.com/u/3360419?v=3","gravatar_id":"","url":"https://api.github.com/users/StevenMPhillips","html_url":"https://github.com/StevenMPhillips","followers_url":"https://api.github.com/users/StevenMPhillips/followers","following_url":"https://api.github.com/users/StevenMPhillips/following{/other_user}","gists_url":"https://api.github.com/users/StevenMPhillips/gists{/gist_id}","starred_url":"https://api.github.com/users/StevenMPhillips/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StevenMPhillips/subscriptions","organizations_url":"https://api.github.com/users/StevenMPhillips/orgs","repos_url":"https://api.github.com/users/StevenMPhillips/repos","events_url":"https://api.github.com/users/StevenMPhillips/events{/privacy}","received_events_url":"https://api.github.com/users/StevenMPhillips/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/StevenMPhillips/arrow","description":"Mirror of Apache Arrow","fork":true,"url":"https://api.github.com/repos/StevenMPhillips/arrow","forks_url":"https://api.github.com/repos/StevenMPhillips/arrow/forks","keys_url":"https://api.github.com/repos/StevenMPhillips/arrow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StevenMPhillips/arrow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StevenMPhillips/arrow/teams","hooks_url":"https://api.github.com/repos/StevenMPhillips/arrow/hooks","issue_events_url":"https://api.github.com/repos/StevenMPhillips/arrow/issues/events{/number}","events_url":"https://api.github.com/repos/StevenMPhillips/arrow/events","assignees_url":"https://api.github.com/repos/StevenMPhillips/arrow/assignees{/user}","branches_url":"https://api.github.com/repos/StevenMPhillips/arrow/branches{/branch}","tags_url":"https://api.github.com/repos/StevenMPhillips/arrow/tags","blobs_url":"https://api.github.com/repos/StevenMPhillips/arrow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StevenMPhillips/arrow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StevenMPhillips/arrow/git/refs{/sha}","trees_url":"https://api.github.com/repos/StevenMPhillips/arrow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StevenMPhillips/arrow/statuses/{sha}","languages_url":"https://api.github.com/repos/StevenMPhillips/arrow/languages","stargazers_url":"https://api.github.com/repos/StevenMPhillips/arrow/stargazers","contributors_url":"https://api.github.com/repos/StevenMPhillips/arrow/contributors","subscribers_url":"https://api.github.com/repos/StevenMPhillips/arrow/subscribers","subscription_url":"https://api.github.com/repos/StevenMPhillips/arrow/subscription","commits_url":"https://api.github.com/repos/StevenMPhillips/arrow/commits{/sha}","git_commits_url":"https://api.github.com/repos/StevenMPhillips/arrow/git/commits{/sha}","comments_url":"https://api.github.com/repos/StevenMPhillips/arrow/comments{/number}","issue_comment_url":"https://api.github.com/repos/StevenMPhillips/arrow/issues/comments{/number}","contents_url":"https://api.github.com/repos/StevenMPhillips/arrow/contents/{+path}","compare_url":"https://api.github.com/repos/StevenMPhillips/arrow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StevenMPhillips/arrow/merges","archive_url":"https://api.github.com/repos/StevenMPhillips/arrow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StevenMPhillips/arrow/downloads","issues_url":"https://api.github.com/repos/StevenMPhillips/arrow/issues{/number}","pulls_url":"https://api.github.com/repos/StevenMPhillips/arrow/pulls{/number}","milestones_url":"https://api.github.com/repos/StevenMPhillips/arrow/milestones{/number}","notifications_url":"https://api.github.com/repos/StevenMPhillips/arrow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StevenMPhillips/arrow/labels{/name}","releases_url":"https://api.github.com/repos/StevenMPhillips/arrow/releases{/id}","deployments_url":"https://api.github.com/repos/StevenMPhillips/arrow/deployments","created_at":"2016-02-25T19:03:08Z","updated_at":"2016-03-01T08:01:37Z","pushed_at":"2016-08-12T16:17:32Z","git_url":"git://github.com/StevenMPhillips/arrow.git","ssh_url":"git@github.com:StevenMPhillips/arrow.git","clone_url":"https://github.com/StevenMPhillips/arrow.git","svn_url":"https://github.com/StevenMPhillips/arrow","homepage":null,"size":1350,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"34e7f48cb71428c4d78cf00d8fdf0045532d6607","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":51905353,"name":"arrow","full_name":"apache/arrow","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/arrow","description":"Mirror of Apache Arrow","fork":false,"url":"https://api.github.com/repos/apache/arrow","forks_url":"https://api.github.com/repos/apache/arrow/forks","keys_url":"https://api.github.com/repos/apache/arrow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/arrow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/arrow/teams","hooks_url":"https://api.github.com/repos/apache/arrow/hooks","issue_events_url":"https://api.github.com/repos/apache/arrow/issues/events{/number}","events_url":"https://api.github.com/repos/apache/arrow/events","assignees_url":"https://api.github.com/repos/apache/arrow/assignees{/user}","branches_url":"https://api.github.com/repos/apache/arrow/branches{/branch}","tags_url":"https://api.github.com/repos/apache/arrow/tags","blobs_url":"https://api.github.com/repos/apache/arrow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/arrow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/arrow/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/arrow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/arrow/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/arrow/languages","stargazers_url":"https://api.github.com/repos/apache/arrow/stargazers","contributors_url":"https://api.github.com/repos/apache/arrow/contributors","subscribers_url":"https://api.github.com/repos/apache/arrow/subscribers","subscription_url":"https://api.github.com/repos/apache/arrow/subscription","commits_url":"https://api.github.com/repos/apache/arrow/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/arrow/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/arrow/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/arrow/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/arrow/contents/{+path}","compare_url":"https://api.github.com/repos/apache/arrow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/arrow/merges","archive_url":"https://api.github.com/repos/apache/arrow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/arrow/downloads","issues_url":"https://api.github.com/repos/apache/arrow/issues{/number}","pulls_url":"https://api.github.com/repos/apache/arrow/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/arrow/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/arrow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/arrow/labels{/name}","releases_url":"https://api.github.com/repos/apache/arrow/releases{/id}","deployments_url":"https://api.github.com/repos/apache/arrow/deployments","created_at":"2016-02-17T08:00:23Z","updated_at":"2016-08-15T08:07:37Z","pushed_at":"2016-08-15T22:36:15Z","git_url":"git://github.com/apache/arrow.git","ssh_url":"git@github.com:apache/arrow.git","clone_url":"https://github.com/apache/arrow.git","svn_url":"https://github.com/apache/arrow","homepage":null,"size":1834,"stargazers_count":625,"watchers_count":625,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":140,"mirror_url":"git://git.apache.org/arrow.git","open_issues_count":11,"forks":140,"open_issues":11,"watchers":625,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/arrow/pulls/99"},"html":{"href":"https://github.com/apache/arrow/pull/99"},"issue":{"href":"https://api.github.com/repos/apache/arrow/issues/99"},"comments":{"href":"https://api.github.com/repos/apache/arrow/issues/99/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/arrow/pulls/99/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/arrow/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/arrow/pulls/99/commits"},"statuses":{"href":"https://api.github.com/repos/apache/arrow/statuses/256facd1d9376ed5377684ae6d5dca0647ef3e04"}}}}
{"actor":{"display_login":"julienledem"}}