{"action":"created","comment":{"url":"https://api.github.com/repos/infinispan/infinispan/pulls/comments/192350646","pull_request_review_id":125110994,"id":192350646,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MjM1MDY0Ng==","diff_hunk":"@@ -0,0 +1,26 @@\n+package org.infinispan.distribution.ch.impl;\n+\n+import org.infinispan.distribution.ch.KeyPartitioner;\n+\n+/**\n+ * KeyPartitioner that always returns 0 for a given segment. This can be useful when segments are not in use, such\n+ * as local or invalidation caches.\n+ * @author wburns\n+ * @since 9.3\n+ */\n+public class SingleSegmentKeyPartitioner implements KeyPartitioner {\n+   private SingleSegmentKeyPartitioner() { }\n+\n+   public static SingleSegmentKeyPartitioner getInstance() {\n+      return SingletonHelper.INSTANCE;\n+   }\n+\n+   @Override\n+   public int getSegment(Object key) {\n+      return 0;\n+   }\n+\n+   private static class SingletonHelper {\n+      private static final SingleSegmentKeyPartitioner INSTANCE = new SingleSegmentKeyPartitioner();","path":"core/src/main/java/org/infinispan/distribution/ch/impl/SingleSegmentKeyPartitioner.java","position":24,"original_position":24,"commit_id":"ccd78d4318fb83ea2bde2d17a6271bf76fa21a82","original_commit_id":"ccd78d4318fb83ea2bde2d17a6271bf76fa21a82","user":{"login":"danberindei","id":504907,"node_id":"MDQ6VXNlcjUwNDkwNw==","avatar_url":"https://avatars2.githubusercontent.com/u/504907?v=4","gravatar_id":"","url":"https://api.github.com/users/danberindei","html_url":"https://github.com/danberindei","followers_url":"https://api.github.com/users/danberindei/followers","following_url":"https://api.github.com/users/danberindei/following{/other_user}","gists_url":"https://api.github.com/users/danberindei/gists{/gist_id}","starred_url":"https://api.github.com/users/danberindei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danberindei/subscriptions","organizations_url":"https://api.github.com/users/danberindei/orgs","repos_url":"https://api.github.com/users/danberindei/repos","events_url":"https://api.github.com/users/danberindei/events{/privacy}","received_events_url":"https://api.github.com/users/danberindei/received_events","type":"User","site_admin":false},"body":"Why hide it in another class?","created_at":"2018-06-01T09:57:43Z","updated_at":"2018-06-01T09:57:43Z","html_url":"https://github.com/infinispan/infinispan/pull/5997#discussion_r192350646","pull_request_url":"https://api.github.com/repos/infinispan/infinispan/pulls/5997","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/infinispan/infinispan/pulls/comments/192350646"},"html":{"href":"https://github.com/infinispan/infinispan/pull/5997#discussion_r192350646"},"pull_request":{"href":"https://api.github.com/repos/infinispan/infinispan/pulls/5997"}}},"pull_request":{"url":"https://api.github.com/repos/infinispan/infinispan/pulls/5997","id":189166566,"node_id":"MDExOlB1bGxSZXF1ZXN0MTg5MTY2NTY2","html_url":"https://github.com/infinispan/infinispan/pull/5997","diff_url":"https://github.com/infinispan/infinispan/pull/5997.diff","patch_url":"https://github.com/infinispan/infinispan/pull/5997.patch","issue_url":"https://api.github.com/repos/infinispan/infinispan/issues/5997","number":5997,"state":"open","locked":false,"title":"ISPN-5451 data container striping","user":{"login":"wburns","id":648175,"node_id":"MDQ6VXNlcjY0ODE3NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/648175?v=4","gravatar_id":"","url":"https://api.github.com/users/wburns","html_url":"https://github.com/wburns","followers_url":"https://api.github.com/users/wburns/followers","following_url":"https://api.github.com/users/wburns/following{/other_user}","gists_url":"https://api.github.com/users/wburns/gists{/gist_id}","starred_url":"https://api.github.com/users/wburns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wburns/subscriptions","organizations_url":"https://api.github.com/users/wburns/orgs","repos_url":"https://api.github.com/users/wburns/repos","events_url":"https://api.github.com/users/wburns/events{/privacy}","received_events_url":"https://api.github.com/users/wburns/received_events","type":"User","site_admin":false},"body":"https://issues.jboss.org/browse/ISPN-5451\r\nhttps://issues.jboss.org/browse/ISPN-9212\r\nhttps://issues.jboss.org/browse/ISPN-9245\r\nhttps://issues.jboss.org/browse/ISPN-9246\r\n\r\nInitial on heap implementation","created_at":"2018-05-19T02:29:42Z","updated_at":"2018-06-01T09:57:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2b8bb927004615c147663e02e4c01ee016b017ac","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":{"url":"https://api.github.com/repos/infinispan/infinispan/milestones/102","html_url":"https://github.com/infinispan/infinispan/milestone/102","labels_url":"https://api.github.com/repos/infinispan/infinispan/milestones/102/labels","id":3332955,"node_id":"MDk6TWlsZXN0b25lMzMzMjk1NQ==","number":102,"title":"9.3.0.CR1","description":"","creator":{"login":"tristantarrant","id":392478,"node_id":"MDQ6VXNlcjM5MjQ3OA==","avatar_url":"https://avatars0.githubusercontent.com/u/392478?v=4","gravatar_id":"","url":"https://api.github.com/users/tristantarrant","html_url":"https://github.com/tristantarrant","followers_url":"https://api.github.com/users/tristantarrant/followers","following_url":"https://api.github.com/users/tristantarrant/following{/other_user}","gists_url":"https://api.github.com/users/tristantarrant/gists{/gist_id}","starred_url":"https://api.github.com/users/tristantarrant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tristantarrant/subscriptions","organizations_url":"https://api.github.com/users/tristantarrant/orgs","repos_url":"https://api.github.com/users/tristantarrant/repos","events_url":"https://api.github.com/users/tristantarrant/events{/privacy}","received_events_url":"https://api.github.com/users/tristantarrant/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":3,"state":"open","created_at":"2018-05-09T11:54:53Z","updated_at":"2018-05-31T09:33:12Z","due_on":"2018-06-01T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/infinispan/infinispan/pulls/5997/commits","review_comments_url":"https://api.github.com/repos/infinispan/infinispan/pulls/5997/comments","review_comment_url":"https://api.github.com/repos/infinispan/infinispan/pulls/comments{/number}","comments_url":"https://api.github.com/repos/infinispan/infinispan/issues/5997/comments","statuses_url":"https://api.github.com/repos/infinispan/infinispan/statuses/ccd78d4318fb83ea2bde2d17a6271bf76fa21a82","head":{"label":"wburns:ISPN-5451_data_container_striping","ref":"ISPN-5451_data_container_striping","sha":"ccd78d4318fb83ea2bde2d17a6271bf76fa21a82","user":{"login":"wburns","id":648175,"node_id":"MDQ6VXNlcjY0ODE3NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/648175?v=4","gravatar_id":"","url":"https://api.github.com/users/wburns","html_url":"https://github.com/wburns","followers_url":"https://api.github.com/users/wburns/followers","following_url":"https://api.github.com/users/wburns/following{/other_user}","gists_url":"https://api.github.com/users/wburns/gists{/gist_id}","starred_url":"https://api.github.com/users/wburns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wburns/subscriptions","organizations_url":"https://api.github.com/users/wburns/orgs","repos_url":"https://api.github.com/users/wburns/repos","events_url":"https://api.github.com/users/wburns/events{/privacy}","received_events_url":"https://api.github.com/users/wburns/received_events","type":"User","site_admin":false},"repo":{"id":2681545,"node_id":"MDEwOlJlcG9zaXRvcnkyNjgxNTQ1","name":"infinispan","full_name":"wburns/infinispan","owner":{"login":"wburns","id":648175,"node_id":"MDQ6VXNlcjY0ODE3NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/648175?v=4","gravatar_id":"","url":"https://api.github.com/users/wburns","html_url":"https://github.com/wburns","followers_url":"https://api.github.com/users/wburns/followers","following_url":"https://api.github.com/users/wburns/following{/other_user}","gists_url":"https://api.github.com/users/wburns/gists{/gist_id}","starred_url":"https://api.github.com/users/wburns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wburns/subscriptions","organizations_url":"https://api.github.com/users/wburns/orgs","repos_url":"https://api.github.com/users/wburns/repos","events_url":"https://api.github.com/users/wburns/events{/privacy}","received_events_url":"https://api.github.com/users/wburns/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wburns/infinispan","description":"Infinispan is an open source data grid platform and highly scalable NoSQL cloud data store.","fork":true,"url":"https://api.github.com/repos/wburns/infinispan","forks_url":"https://api.github.com/repos/wburns/infinispan/forks","keys_url":"https://api.github.com/repos/wburns/infinispan/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wburns/infinispan/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wburns/infinispan/teams","hooks_url":"https://api.github.com/repos/wburns/infinispan/hooks","issue_events_url":"https://api.github.com/repos/wburns/infinispan/issues/events{/number}","events_url":"https://api.github.com/repos/wburns/infinispan/events","assignees_url":"https://api.github.com/repos/wburns/infinispan/assignees{/user}","branches_url":"https://api.github.com/repos/wburns/infinispan/branches{/branch}","tags_url":"https://api.github.com/repos/wburns/infinispan/tags","blobs_url":"https://api.github.com/repos/wburns/infinispan/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wburns/infinispan/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wburns/infinispan/git/refs{/sha}","trees_url":"https://api.github.com/repos/wburns/infinispan/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wburns/infinispan/statuses/{sha}","languages_url":"https://api.github.com/repos/wburns/infinispan/languages","stargazers_url":"https://api.github.com/repos/wburns/infinispan/stargazers","contributors_url":"https://api.github.com/repos/wburns/infinispan/contributors","subscribers_url":"https://api.github.com/repos/wburns/infinispan/subscribers","subscription_url":"https://api.github.com/repos/wburns/infinispan/subscription","commits_url":"https://api.github.com/repos/wburns/infinispan/commits{/sha}","git_commits_url":"https://api.github.com/repos/wburns/infinispan/git/commits{/sha}","comments_url":"https://api.github.com/repos/wburns/infinispan/comments{/number}","issue_comment_url":"https://api.github.com/repos/wburns/infinispan/issues/comments{/number}","contents_url":"https://api.github.com/repos/wburns/infinispan/contents/{+path}","compare_url":"https://api.github.com/repos/wburns/infinispan/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wburns/infinispan/merges","archive_url":"https://api.github.com/repos/wburns/infinispan/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wburns/infinispan/downloads","issues_url":"https://api.github.com/repos/wburns/infinispan/issues{/number}","pulls_url":"https://api.github.com/repos/wburns/infinispan/pulls{/number}","milestones_url":"https://api.github.com/repos/wburns/infinispan/milestones{/number}","notifications_url":"https://api.github.com/repos/wburns/infinispan/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wburns/infinispan/labels{/name}","releases_url":"https://api.github.com/repos/wburns/infinispan/releases{/id}","deployments_url":"https://api.github.com/repos/wburns/infinispan/deployments","created_at":"2011-10-31T15:31:04Z","updated_at":"2018-03-27T12:30:32Z","pushed_at":"2018-06-01T01:15:51Z","git_url":"git://github.com/wburns/infinispan.git","ssh_url":"git@github.com:wburns/infinispan.git","clone_url":"https://github.com/wburns/infinispan.git","svn_url":"https://github.com/wburns/infinispan","homepage":"http://www.infinispan.org","size":101182,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"infinispan:master","ref":"master","sha":"e1ed6e662e12286076e4ac548480698844f66b1a","user":{"login":"infinispan","id":458093,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1ODA5Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/458093?v=4","gravatar_id":"","url":"https://api.github.com/users/infinispan","html_url":"https://github.com/infinispan","followers_url":"https://api.github.com/users/infinispan/followers","following_url":"https://api.github.com/users/infinispan/following{/other_user}","gists_url":"https://api.github.com/users/infinispan/gists{/gist_id}","starred_url":"https://api.github.com/users/infinispan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infinispan/subscriptions","organizations_url":"https://api.github.com/users/infinispan/orgs","repos_url":"https://api.github.com/users/infinispan/repos","events_url":"https://api.github.com/users/infinispan/events{/privacy}","received_events_url":"https://api.github.com/users/infinispan/received_events","type":"Organization","site_admin":false},"repo":{"id":1050944,"node_id":"MDEwOlJlcG9zaXRvcnkxMDUwOTQ0","name":"infinispan","full_name":"infinispan/infinispan","owner":{"login":"infinispan","id":458093,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1ODA5Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/458093?v=4","gravatar_id":"","url":"https://api.github.com/users/infinispan","html_url":"https://github.com/infinispan","followers_url":"https://api.github.com/users/infinispan/followers","following_url":"https://api.github.com/users/infinispan/following{/other_user}","gists_url":"https://api.github.com/users/infinispan/gists{/gist_id}","starred_url":"https://api.github.com/users/infinispan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infinispan/subscriptions","organizations_url":"https://api.github.com/users/infinispan/orgs","repos_url":"https://api.github.com/users/infinispan/repos","events_url":"https://api.github.com/users/infinispan/events{/privacy}","received_events_url":"https://api.github.com/users/infinispan/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/infinispan/infinispan","description":"Infinispan is an open source data grid platform and highly scalable NoSQL cloud data store.","fork":false,"url":"https://api.github.com/repos/infinispan/infinispan","forks_url":"https://api.github.com/repos/infinispan/infinispan/forks","keys_url":"https://api.github.com/repos/infinispan/infinispan/keys{/key_id}","collaborators_url":"https://api.github.com/repos/infinispan/infinispan/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/infinispan/infinispan/teams","hooks_url":"https://api.github.com/repos/infinispan/infinispan/hooks","issue_events_url":"https://api.github.com/repos/infinispan/infinispan/issues/events{/number}","events_url":"https://api.github.com/repos/infinispan/infinispan/events","assignees_url":"https://api.github.com/repos/infinispan/infinispan/assignees{/user}","branches_url":"https://api.github.com/repos/infinispan/infinispan/branches{/branch}","tags_url":"https://api.github.com/repos/infinispan/infinispan/tags","blobs_url":"https://api.github.com/repos/infinispan/infinispan/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/infinispan/infinispan/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/infinispan/infinispan/git/refs{/sha}","trees_url":"https://api.github.com/repos/infinispan/infinispan/git/trees{/sha}","statuses_url":"https://api.github.com/repos/infinispan/infinispan/statuses/{sha}","languages_url":"https://api.github.com/repos/infinispan/infinispan/languages","stargazers_url":"https://api.github.com/repos/infinispan/infinispan/stargazers","contributors_url":"https://api.github.com/repos/infinispan/infinispan/contributors","subscribers_url":"https://api.github.com/repos/infinispan/infinispan/subscribers","subscription_url":"https://api.github.com/repos/infinispan/infinispan/subscription","commits_url":"https://api.github.com/repos/infinispan/infinispan/commits{/sha}","git_commits_url":"https://api.github.com/repos/infinispan/infinispan/git/commits{/sha}","comments_url":"https://api.github.com/repos/infinispan/infinispan/comments{/number}","issue_comment_url":"https://api.github.com/repos/infinispan/infinispan/issues/comments{/number}","contents_url":"https://api.github.com/repos/infinispan/infinispan/contents/{+path}","compare_url":"https://api.github.com/repos/infinispan/infinispan/compare/{base}...{head}","merges_url":"https://api.github.com/repos/infinispan/infinispan/merges","archive_url":"https://api.github.com/repos/infinispan/infinispan/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/infinispan/infinispan/downloads","issues_url":"https://api.github.com/repos/infinispan/infinispan/issues{/number}","pulls_url":"https://api.github.com/repos/infinispan/infinispan/pulls{/number}","milestones_url":"https://api.github.com/repos/infinispan/infinispan/milestones{/number}","notifications_url":"https://api.github.com/repos/infinispan/infinispan/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/infinispan/infinispan/labels{/name}","releases_url":"https://api.github.com/repos/infinispan/infinispan/releases{/id}","deployments_url":"https://api.github.com/repos/infinispan/infinispan/deployments","created_at":"2010-11-04T12:33:19Z","updated_at":"2018-05-31T20:07:38Z","pushed_at":"2018-06-01T09:37:39Z","git_url":"git://github.com/infinispan/infinispan.git","ssh_url":"git@github.com:infinispan/infinispan.git","clone_url":"https://github.com/infinispan/infinispan.git","svn_url":"https://github.com/infinispan/infinispan","homepage":"http://www.infinispan.org","size":108126,"stargazers_count":660,"watchers_count":660,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":445,"mirror_url":null,"archived":false,"open_issues_count":27,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":445,"open_issues":27,"watchers":660,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/infinispan/infinispan/pulls/5997"},"html":{"href":"https://github.com/infinispan/infinispan/pull/5997"},"issue":{"href":"https://api.github.com/repos/infinispan/infinispan/issues/5997"},"comments":{"href":"https://api.github.com/repos/infinispan/infinispan/issues/5997/comments"},"review_comments":{"href":"https://api.github.com/repos/infinispan/infinispan/pulls/5997/comments"},"review_comment":{"href":"https://api.github.com/repos/infinispan/infinispan/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/infinispan/infinispan/pulls/5997/commits"},"statuses":{"href":"https://api.github.com/repos/infinispan/infinispan/statuses/ccd78d4318fb83ea2bde2d17a6271bf76fa21a82"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"danberindei"}}