{"action":"created","comment":{"url":"https://api.github.com/repos/facebook/presto/pulls/comments/40302182","id":40302182,"diff_hunk":"@@ -0,0 +1,109 @@\n+/*\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * 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 com.facebook.presto.util;\n+\n+import it.unimi.dsi.fastutil.booleans.BooleanOpenHashSet;\n+import it.unimi.dsi.fastutil.bytes.ByteOpenHashSet;\n+import it.unimi.dsi.fastutil.chars.CharOpenHashSet;\n+import it.unimi.dsi.fastutil.doubles.DoubleOpenHashSet;\n+import it.unimi.dsi.fastutil.floats.FloatOpenHashSet;\n+import it.unimi.dsi.fastutil.ints.IntOpenHashSet;\n+import it.unimi.dsi.fastutil.longs.LongOpenHashSet;\n+import it.unimi.dsi.fastutil.objects.ObjectOpenHashSet;\n+import it.unimi.dsi.fastutil.shorts.ShortOpenHashSet;\n+\n+import java.util.Collection;\n+import java.util.Set;\n+\n+public final class FastutilSetHelper\n+{\n+    @SuppressWarnings({\"unchecked\"})\n+    public static Set<?> toFastutilHashSet(Set<?> set, Class<?> javaElementType)\n+    {\n+        if (javaElementType.equals(boolean.class)) {\n+            return new BooleanOpenHashSet((Collection<Boolean>) set);\n+        }\n+        else if (javaElementType.equals(byte.class)) {","path":"presto-main/src/main/java/com/facebook/presto/util/FastutilSetHelper.java","position":37,"original_position":37,"commit_id":"1b5451394cb8957505588025f8f09d54531c5321","original_commit_id":"1b5451394cb8957505588025f8f09d54531c5321","user":{"login":"sopel39","id":5989165,"avatar_url":"https://avatars.githubusercontent.com/u/5989165?v=3","gravatar_id":"","url":"https://api.github.com/users/sopel39","html_url":"https://github.com/sopel39","followers_url":"https://api.github.com/users/sopel39/followers","following_url":"https://api.github.com/users/sopel39/following{/other_user}","gists_url":"https://api.github.com/users/sopel39/gists{/gist_id}","starred_url":"https://api.github.com/users/sopel39/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sopel39/subscriptions","organizations_url":"https://api.github.com/users/sopel39/orgs","repos_url":"https://api.github.com/users/sopel39/repos","events_url":"https://api.github.com/users/sopel39/events{/privacy}","received_events_url":"https://api.github.com/users/sopel39/received_events","type":"User","site_admin":false},"body":"done","created_at":"2015-09-24T09:50:55Z","updated_at":"2015-09-24T09:50:55Z","html_url":"https://github.com/facebook/presto/pull/3238#discussion_r40302182","pull_request_url":"https://api.github.com/repos/facebook/presto/pulls/3238","_links":{"self":{"href":"https://api.github.com/repos/facebook/presto/pulls/comments/40302182"},"html":{"href":"https://github.com/facebook/presto/pull/3238#discussion_r40302182"},"pull_request":{"href":"https://api.github.com/repos/facebook/presto/pulls/3238"}}},"pull_request":{"url":"https://api.github.com/repos/facebook/presto/pulls/3238","id":39574766,"html_url":"https://github.com/facebook/presto/pull/3238","diff_url":"https://github.com/facebook/presto/pull/3238.diff","patch_url":"https://github.com/facebook/presto/pull/3238.patch","issue_url":"https://api.github.com/repos/facebook/presto/issues/3238","number":3238,"state":"open","locked":false,"title":"Remove boxing for IN lists of primitives #3163","user":{"login":"sopel39","id":5989165,"avatar_url":"https://avatars.githubusercontent.com/u/5989165?v=3","gravatar_id":"","url":"https://api.github.com/users/sopel39","html_url":"https://github.com/sopel39","followers_url":"https://api.github.com/users/sopel39/followers","following_url":"https://api.github.com/users/sopel39/following{/other_user}","gists_url":"https://api.github.com/users/sopel39/gists{/gist_id}","starred_url":"https://api.github.com/users/sopel39/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sopel39/subscriptions","organizations_url":"https://api.github.com/users/sopel39/orgs","repos_url":"https://api.github.com/users/sopel39/repos","events_url":"https://api.github.com/users/sopel39/events{/privacy}","received_events_url":"https://api.github.com/users/sopel39/received_events","type":"User","site_admin":false},"body":"Using primitive fastutil sets removes need for boxing value\r\nwhen checking if the value is in huge constants set.","created_at":"2015-07-09T11:52:54Z","updated_at":"2015-09-24T09:50:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"43590cddfb96b3734fd731d24e366cd2d285d4cf","assignee":{"login":"haozhun","id":2020503,"avatar_url":"https://avatars.githubusercontent.com/u/2020503?v=3","gravatar_id":"","url":"https://api.github.com/users/haozhun","html_url":"https://github.com/haozhun","followers_url":"https://api.github.com/users/haozhun/followers","following_url":"https://api.github.com/users/haozhun/following{/other_user}","gists_url":"https://api.github.com/users/haozhun/gists{/gist_id}","starred_url":"https://api.github.com/users/haozhun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haozhun/subscriptions","organizations_url":"https://api.github.com/users/haozhun/orgs","repos_url":"https://api.github.com/users/haozhun/repos","events_url":"https://api.github.com/users/haozhun/events{/privacy}","received_events_url":"https://api.github.com/users/haozhun/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/facebook/presto/pulls/3238/commits","review_comments_url":"https://api.github.com/repos/facebook/presto/pulls/3238/comments","review_comment_url":"https://api.github.com/repos/facebook/presto/pulls/comments{/number}","comments_url":"https://api.github.com/repos/facebook/presto/issues/3238/comments","statuses_url":"https://api.github.com/repos/facebook/presto/statuses/1b5451394cb8957505588025f8f09d54531c5321","head":{"label":"sopel39:in-huge","ref":"in-huge","sha":"1b5451394cb8957505588025f8f09d54531c5321","user":{"login":"sopel39","id":5989165,"avatar_url":"https://avatars.githubusercontent.com/u/5989165?v=3","gravatar_id":"","url":"https://api.github.com/users/sopel39","html_url":"https://github.com/sopel39","followers_url":"https://api.github.com/users/sopel39/followers","following_url":"https://api.github.com/users/sopel39/following{/other_user}","gists_url":"https://api.github.com/users/sopel39/gists{/gist_id}","starred_url":"https://api.github.com/users/sopel39/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sopel39/subscriptions","organizations_url":"https://api.github.com/users/sopel39/orgs","repos_url":"https://api.github.com/users/sopel39/repos","events_url":"https://api.github.com/users/sopel39/events{/privacy}","received_events_url":"https://api.github.com/users/sopel39/received_events","type":"User","site_admin":false},"repo":{"id":38813101,"name":"presto","full_name":"sopel39/presto","owner":{"login":"sopel39","id":5989165,"avatar_url":"https://avatars.githubusercontent.com/u/5989165?v=3","gravatar_id":"","url":"https://api.github.com/users/sopel39","html_url":"https://github.com/sopel39","followers_url":"https://api.github.com/users/sopel39/followers","following_url":"https://api.github.com/users/sopel39/following{/other_user}","gists_url":"https://api.github.com/users/sopel39/gists{/gist_id}","starred_url":"https://api.github.com/users/sopel39/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sopel39/subscriptions","organizations_url":"https://api.github.com/users/sopel39/orgs","repos_url":"https://api.github.com/users/sopel39/repos","events_url":"https://api.github.com/users/sopel39/events{/privacy}","received_events_url":"https://api.github.com/users/sopel39/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sopel39/presto","description":"Distributed SQL query engine for running interactive analytic queries against big data sources.","fork":true,"url":"https://api.github.com/repos/sopel39/presto","forks_url":"https://api.github.com/repos/sopel39/presto/forks","keys_url":"https://api.github.com/repos/sopel39/presto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sopel39/presto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sopel39/presto/teams","hooks_url":"https://api.github.com/repos/sopel39/presto/hooks","issue_events_url":"https://api.github.com/repos/sopel39/presto/issues/events{/number}","events_url":"https://api.github.com/repos/sopel39/presto/events","assignees_url":"https://api.github.com/repos/sopel39/presto/assignees{/user}","branches_url":"https://api.github.com/repos/sopel39/presto/branches{/branch}","tags_url":"https://api.github.com/repos/sopel39/presto/tags","blobs_url":"https://api.github.com/repos/sopel39/presto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sopel39/presto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sopel39/presto/git/refs{/sha}","trees_url":"https://api.github.com/repos/sopel39/presto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sopel39/presto/statuses/{sha}","languages_url":"https://api.github.com/repos/sopel39/presto/languages","stargazers_url":"https://api.github.com/repos/sopel39/presto/stargazers","contributors_url":"https://api.github.com/repos/sopel39/presto/contributors","subscribers_url":"https://api.github.com/repos/sopel39/presto/subscribers","subscription_url":"https://api.github.com/repos/sopel39/presto/subscription","commits_url":"https://api.github.com/repos/sopel39/presto/commits{/sha}","git_commits_url":"https://api.github.com/repos/sopel39/presto/git/commits{/sha}","comments_url":"https://api.github.com/repos/sopel39/presto/comments{/number}","issue_comment_url":"https://api.github.com/repos/sopel39/presto/issues/comments{/number}","contents_url":"https://api.github.com/repos/sopel39/presto/contents/{+path}","compare_url":"https://api.github.com/repos/sopel39/presto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sopel39/presto/merges","archive_url":"https://api.github.com/repos/sopel39/presto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sopel39/presto/downloads","issues_url":"https://api.github.com/repos/sopel39/presto/issues{/number}","pulls_url":"https://api.github.com/repos/sopel39/presto/pulls{/number}","milestones_url":"https://api.github.com/repos/sopel39/presto/milestones{/number}","notifications_url":"https://api.github.com/repos/sopel39/presto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sopel39/presto/labels{/name}","releases_url":"https://api.github.com/repos/sopel39/presto/releases{/id}","created_at":"2015-07-09T10:05:03Z","updated_at":"2015-07-09T10:05:12Z","pushed_at":"2015-09-16T15:10:26Z","git_url":"git://github.com/sopel39/presto.git","ssh_url":"git@github.com:sopel39/presto.git","clone_url":"https://github.com/sopel39/presto.git","svn_url":"https://github.com/sopel39/presto","homepage":"https://prestodb.io","size":46240,"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":"facebook:master","ref":"master","sha":"7aa6d34bbabac5daec69a4afd116dafc141c4655","user":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"repo":{"id":5349565,"name":"presto","full_name":"facebook/presto","owner":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/facebook/presto","description":"Distributed SQL query engine for running interactive analytic queries against big data sources.","fork":false,"url":"https://api.github.com/repos/facebook/presto","forks_url":"https://api.github.com/repos/facebook/presto/forks","keys_url":"https://api.github.com/repos/facebook/presto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/facebook/presto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/facebook/presto/teams","hooks_url":"https://api.github.com/repos/facebook/presto/hooks","issue_events_url":"https://api.github.com/repos/facebook/presto/issues/events{/number}","events_url":"https://api.github.com/repos/facebook/presto/events","assignees_url":"https://api.github.com/repos/facebook/presto/assignees{/user}","branches_url":"https://api.github.com/repos/facebook/presto/branches{/branch}","tags_url":"https://api.github.com/repos/facebook/presto/tags","blobs_url":"https://api.github.com/repos/facebook/presto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/facebook/presto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/facebook/presto/git/refs{/sha}","trees_url":"https://api.github.com/repos/facebook/presto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/facebook/presto/statuses/{sha}","languages_url":"https://api.github.com/repos/facebook/presto/languages","stargazers_url":"https://api.github.com/repos/facebook/presto/stargazers","contributors_url":"https://api.github.com/repos/facebook/presto/contributors","subscribers_url":"https://api.github.com/repos/facebook/presto/subscribers","subscription_url":"https://api.github.com/repos/facebook/presto/subscription","commits_url":"https://api.github.com/repos/facebook/presto/commits{/sha}","git_commits_url":"https://api.github.com/repos/facebook/presto/git/commits{/sha}","comments_url":"https://api.github.com/repos/facebook/presto/comments{/number}","issue_comment_url":"https://api.github.com/repos/facebook/presto/issues/comments{/number}","contents_url":"https://api.github.com/repos/facebook/presto/contents/{+path}","compare_url":"https://api.github.com/repos/facebook/presto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/facebook/presto/merges","archive_url":"https://api.github.com/repos/facebook/presto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/facebook/presto/downloads","issues_url":"https://api.github.com/repos/facebook/presto/issues{/number}","pulls_url":"https://api.github.com/repos/facebook/presto/pulls{/number}","milestones_url":"https://api.github.com/repos/facebook/presto/milestones{/number}","notifications_url":"https://api.github.com/repos/facebook/presto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/facebook/presto/labels{/name}","releases_url":"https://api.github.com/repos/facebook/presto/releases{/id}","created_at":"2012-08-09T01:03:37Z","updated_at":"2015-09-24T08:14:52Z","pushed_at":"2015-09-24T05:25:24Z","git_url":"git://github.com/facebook/presto.git","ssh_url":"git@github.com:facebook/presto.git","clone_url":"https://github.com/facebook/presto.git","svn_url":"https://github.com/facebook/presto","homepage":"https://prestodb.io","size":102451,"stargazers_count":3898,"watchers_count":3898,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":997,"mirror_url":null,"open_issues_count":324,"forks":997,"open_issues":324,"watchers":3898,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/facebook/presto/pulls/3238"},"html":{"href":"https://github.com/facebook/presto/pull/3238"},"issue":{"href":"https://api.github.com/repos/facebook/presto/issues/3238"},"comments":{"href":"https://api.github.com/repos/facebook/presto/issues/3238/comments"},"review_comments":{"href":"https://api.github.com/repos/facebook/presto/pulls/3238/comments"},"review_comment":{"href":"https://api.github.com/repos/facebook/presto/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/facebook/presto/pulls/3238/commits"},"statuses":{"href":"https://api.github.com/repos/facebook/presto/statuses/1b5451394cb8957505588025f8f09d54531c5321"}}}}