{"action":"created","comment":{"url":"https://api.github.com/repos/mbudiu-vmw/hiero/pulls/comments/85622408","pull_request_review_id":6331063,"id":85622408,"diff_hunk":"@@ -0,0 +1,59 @@\n+package org.hiero.sketch.spreadsheet;\n+\n+import org.hiero.sketch.dataset.api.IMonoid;\n+import java.util.Comparator;\n+import java.util.Iterator;\n+import java.util.SortedMap;\n+import java.util.TreeMap;\n+\n+/**\n+ * Implements the TopK monoid.\n+ * @param maxSize: this is K, the size of the list\n+ * @param Comparator: this is the comparison operator for deciding the top K\n+ */\n+public class MonoidTopK<T> implements IMonoid<SortedMap<T, Integer>> {\n+    private int maxSize;","path":"src/main/java/org/hiero/sketch/spreadsheet/MonoidTopK.java","position":15,"original_position":15,"commit_id":"635865fc3e6aeccf222923ccb1ea3802358421c2","original_commit_id":"635865fc3e6aeccf222923ccb1ea3802358421c2","user":{"login":"mbudiu-vmw","id":19397042,"avatar_url":"https://avatars.githubusercontent.com/u/19397042?v=3","gravatar_id":"","url":"https://api.github.com/users/mbudiu-vmw","html_url":"https://github.com/mbudiu-vmw","followers_url":"https://api.github.com/users/mbudiu-vmw/followers","following_url":"https://api.github.com/users/mbudiu-vmw/following{/other_user}","gists_url":"https://api.github.com/users/mbudiu-vmw/gists{/gist_id}","starred_url":"https://api.github.com/users/mbudiu-vmw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbudiu-vmw/subscriptions","organizations_url":"https://api.github.com/users/mbudiu-vmw/orgs","repos_url":"https://api.github.com/users/mbudiu-vmw/repos","events_url":"https://api.github.com/users/mbudiu-vmw/events{/privacy}","received_events_url":"https://api.github.com/users/mbudiu-vmw/received_events","type":"User","site_admin":false},"body":"Add a toString method - perhaps you just want to return the size and the max?","created_at":"2016-10-28T22:51:15Z","updated_at":"2016-10-28T22:53:33Z","html_url":"https://github.com/mbudiu-vmw/hiero/pull/14#discussion_r85622408","pull_request_url":"https://api.github.com/repos/mbudiu-vmw/hiero/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/mbudiu-vmw/hiero/pulls/comments/85622408"},"html":{"href":"https://github.com/mbudiu-vmw/hiero/pull/14#discussion_r85622408"},"pull_request":{"href":"https://api.github.com/repos/mbudiu-vmw/hiero/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/mbudiu-vmw/hiero/pulls/14","id":91460495,"html_url":"https://github.com/mbudiu-vmw/hiero/pull/14","diff_url":"https://github.com/mbudiu-vmw/hiero/pull/14.diff","patch_url":"https://github.com/mbudiu-vmw/hiero/pull/14.patch","issue_url":"https://api.github.com/repos/mbudiu-vmw/hiero/issues/14","number":14,"state":"open","locked":false,"title":"TopK Monoid added","user":{"login":"parikg","id":22647534,"avatar_url":"https://avatars.githubusercontent.com/u/22647534?v=3","gravatar_id":"","url":"https://api.github.com/users/parikg","html_url":"https://github.com/parikg","followers_url":"https://api.github.com/users/parikg/followers","following_url":"https://api.github.com/users/parikg/following{/other_user}","gists_url":"https://api.github.com/users/parikg/gists{/gist_id}","starred_url":"https://api.github.com/users/parikg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parikg/subscriptions","organizations_url":"https://api.github.com/users/parikg/orgs","repos_url":"https://api.github.com/users/parikg/repos","events_url":"https://api.github.com/users/parikg/events{/privacy}","received_events_url":"https://api.github.com/users/parikg/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-28T22:08:24Z","updated_at":"2016-10-28T22:53:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6f8af697112ef26919f889c45a6bba54c7242ed1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mbudiu-vmw/hiero/pulls/14/commits","review_comments_url":"https://api.github.com/repos/mbudiu-vmw/hiero/pulls/14/comments","review_comment_url":"https://api.github.com/repos/mbudiu-vmw/hiero/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mbudiu-vmw/hiero/issues/14/comments","statuses_url":"https://api.github.com/repos/mbudiu-vmw/hiero/statuses/635865fc3e6aeccf222923ccb1ea3802358421c2","head":{"label":"parikg:master","ref":"master","sha":"635865fc3e6aeccf222923ccb1ea3802358421c2","user":{"login":"parikg","id":22647534,"avatar_url":"https://avatars.githubusercontent.com/u/22647534?v=3","gravatar_id":"","url":"https://api.github.com/users/parikg","html_url":"https://github.com/parikg","followers_url":"https://api.github.com/users/parikg/followers","following_url":"https://api.github.com/users/parikg/following{/other_user}","gists_url":"https://api.github.com/users/parikg/gists{/gist_id}","starred_url":"https://api.github.com/users/parikg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parikg/subscriptions","organizations_url":"https://api.github.com/users/parikg/orgs","repos_url":"https://api.github.com/users/parikg/repos","events_url":"https://api.github.com/users/parikg/events{/privacy}","received_events_url":"https://api.github.com/users/parikg/received_events","type":"User","site_admin":false},"repo":{"id":70101919,"name":"hiero","full_name":"parikg/hiero","owner":{"login":"parikg","id":22647534,"avatar_url":"https://avatars.githubusercontent.com/u/22647534?v=3","gravatar_id":"","url":"https://api.github.com/users/parikg","html_url":"https://github.com/parikg","followers_url":"https://api.github.com/users/parikg/followers","following_url":"https://api.github.com/users/parikg/following{/other_user}","gists_url":"https://api.github.com/users/parikg/gists{/gist_id}","starred_url":"https://api.github.com/users/parikg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parikg/subscriptions","organizations_url":"https://api.github.com/users/parikg/orgs","repos_url":"https://api.github.com/users/parikg/repos","events_url":"https://api.github.com/users/parikg/events{/privacy}","received_events_url":"https://api.github.com/users/parikg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/parikg/hiero","description":"Big data spreadsheet","fork":true,"url":"https://api.github.com/repos/parikg/hiero","forks_url":"https://api.github.com/repos/parikg/hiero/forks","keys_url":"https://api.github.com/repos/parikg/hiero/keys{/key_id}","collaborators_url":"https://api.github.com/repos/parikg/hiero/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/parikg/hiero/teams","hooks_url":"https://api.github.com/repos/parikg/hiero/hooks","issue_events_url":"https://api.github.com/repos/parikg/hiero/issues/events{/number}","events_url":"https://api.github.com/repos/parikg/hiero/events","assignees_url":"https://api.github.com/repos/parikg/hiero/assignees{/user}","branches_url":"https://api.github.com/repos/parikg/hiero/branches{/branch}","tags_url":"https://api.github.com/repos/parikg/hiero/tags","blobs_url":"https://api.github.com/repos/parikg/hiero/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/parikg/hiero/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/parikg/hiero/git/refs{/sha}","trees_url":"https://api.github.com/repos/parikg/hiero/git/trees{/sha}","statuses_url":"https://api.github.com/repos/parikg/hiero/statuses/{sha}","languages_url":"https://api.github.com/repos/parikg/hiero/languages","stargazers_url":"https://api.github.com/repos/parikg/hiero/stargazers","contributors_url":"https://api.github.com/repos/parikg/hiero/contributors","subscribers_url":"https://api.github.com/repos/parikg/hiero/subscribers","subscription_url":"https://api.github.com/repos/parikg/hiero/subscription","commits_url":"https://api.github.com/repos/parikg/hiero/commits{/sha}","git_commits_url":"https://api.github.com/repos/parikg/hiero/git/commits{/sha}","comments_url":"https://api.github.com/repos/parikg/hiero/comments{/number}","issue_comment_url":"https://api.github.com/repos/parikg/hiero/issues/comments{/number}","contents_url":"https://api.github.com/repos/parikg/hiero/contents/{+path}","compare_url":"https://api.github.com/repos/parikg/hiero/compare/{base}...{head}","merges_url":"https://api.github.com/repos/parikg/hiero/merges","archive_url":"https://api.github.com/repos/parikg/hiero/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/parikg/hiero/downloads","issues_url":"https://api.github.com/repos/parikg/hiero/issues{/number}","pulls_url":"https://api.github.com/repos/parikg/hiero/pulls{/number}","milestones_url":"https://api.github.com/repos/parikg/hiero/milestones{/number}","notifications_url":"https://api.github.com/repos/parikg/hiero/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/parikg/hiero/labels{/name}","releases_url":"https://api.github.com/repos/parikg/hiero/releases{/id}","deployments_url":"https://api.github.com/repos/parikg/hiero/deployments","created_at":"2016-10-05T21:45:45Z","updated_at":"2016-10-14T01:02:57Z","pushed_at":"2016-10-28T22:06:03Z","git_url":"git://github.com/parikg/hiero.git","ssh_url":"git@github.com:parikg/hiero.git","clone_url":"https://github.com/parikg/hiero.git","svn_url":"https://github.com/parikg/hiero","homepage":null,"size":79,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"mbudiu-vmw:master","ref":"master","sha":"ed44300f4582d6dd936730f8721e8b463f7e57a2","user":{"login":"mbudiu-vmw","id":19397042,"avatar_url":"https://avatars.githubusercontent.com/u/19397042?v=3","gravatar_id":"","url":"https://api.github.com/users/mbudiu-vmw","html_url":"https://github.com/mbudiu-vmw","followers_url":"https://api.github.com/users/mbudiu-vmw/followers","following_url":"https://api.github.com/users/mbudiu-vmw/following{/other_user}","gists_url":"https://api.github.com/users/mbudiu-vmw/gists{/gist_id}","starred_url":"https://api.github.com/users/mbudiu-vmw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbudiu-vmw/subscriptions","organizations_url":"https://api.github.com/users/mbudiu-vmw/orgs","repos_url":"https://api.github.com/users/mbudiu-vmw/repos","events_url":"https://api.github.com/users/mbudiu-vmw/events{/privacy}","received_events_url":"https://api.github.com/users/mbudiu-vmw/received_events","type":"User","site_admin":false},"repo":{"id":69908551,"name":"hiero","full_name":"mbudiu-vmw/hiero","owner":{"login":"mbudiu-vmw","id":19397042,"avatar_url":"https://avatars.githubusercontent.com/u/19397042?v=3","gravatar_id":"","url":"https://api.github.com/users/mbudiu-vmw","html_url":"https://github.com/mbudiu-vmw","followers_url":"https://api.github.com/users/mbudiu-vmw/followers","following_url":"https://api.github.com/users/mbudiu-vmw/following{/other_user}","gists_url":"https://api.github.com/users/mbudiu-vmw/gists{/gist_id}","starred_url":"https://api.github.com/users/mbudiu-vmw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbudiu-vmw/subscriptions","organizations_url":"https://api.github.com/users/mbudiu-vmw/orgs","repos_url":"https://api.github.com/users/mbudiu-vmw/repos","events_url":"https://api.github.com/users/mbudiu-vmw/events{/privacy}","received_events_url":"https://api.github.com/users/mbudiu-vmw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mbudiu-vmw/hiero","description":"Big data spreadsheet","fork":false,"url":"https://api.github.com/repos/mbudiu-vmw/hiero","forks_url":"https://api.github.com/repos/mbudiu-vmw/hiero/forks","keys_url":"https://api.github.com/repos/mbudiu-vmw/hiero/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mbudiu-vmw/hiero/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mbudiu-vmw/hiero/teams","hooks_url":"https://api.github.com/repos/mbudiu-vmw/hiero/hooks","issue_events_url":"https://api.github.com/repos/mbudiu-vmw/hiero/issues/events{/number}","events_url":"https://api.github.com/repos/mbudiu-vmw/hiero/events","assignees_url":"https://api.github.com/repos/mbudiu-vmw/hiero/assignees{/user}","branches_url":"https://api.github.com/repos/mbudiu-vmw/hiero/branches{/branch}","tags_url":"https://api.github.com/repos/mbudiu-vmw/hiero/tags","blobs_url":"https://api.github.com/repos/mbudiu-vmw/hiero/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mbudiu-vmw/hiero/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mbudiu-vmw/hiero/git/refs{/sha}","trees_url":"https://api.github.com/repos/mbudiu-vmw/hiero/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mbudiu-vmw/hiero/statuses/{sha}","languages_url":"https://api.github.com/repos/mbudiu-vmw/hiero/languages","stargazers_url":"https://api.github.com/repos/mbudiu-vmw/hiero/stargazers","contributors_url":"https://api.github.com/repos/mbudiu-vmw/hiero/contributors","subscribers_url":"https://api.github.com/repos/mbudiu-vmw/hiero/subscribers","subscription_url":"https://api.github.com/repos/mbudiu-vmw/hiero/subscription","commits_url":"https://api.github.com/repos/mbudiu-vmw/hiero/commits{/sha}","git_commits_url":"https://api.github.com/repos/mbudiu-vmw/hiero/git/commits{/sha}","comments_url":"https://api.github.com/repos/mbudiu-vmw/hiero/comments{/number}","issue_comment_url":"https://api.github.com/repos/mbudiu-vmw/hiero/issues/comments{/number}","contents_url":"https://api.github.com/repos/mbudiu-vmw/hiero/contents/{+path}","compare_url":"https://api.github.com/repos/mbudiu-vmw/hiero/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mbudiu-vmw/hiero/merges","archive_url":"https://api.github.com/repos/mbudiu-vmw/hiero/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mbudiu-vmw/hiero/downloads","issues_url":"https://api.github.com/repos/mbudiu-vmw/hiero/issues{/number}","pulls_url":"https://api.github.com/repos/mbudiu-vmw/hiero/pulls{/number}","milestones_url":"https://api.github.com/repos/mbudiu-vmw/hiero/milestones{/number}","notifications_url":"https://api.github.com/repos/mbudiu-vmw/hiero/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mbudiu-vmw/hiero/labels{/name}","releases_url":"https://api.github.com/repos/mbudiu-vmw/hiero/releases{/id}","deployments_url":"https://api.github.com/repos/mbudiu-vmw/hiero/deployments","created_at":"2016-10-03T20:32:15Z","updated_at":"2016-10-14T00:39:11Z","pushed_at":"2016-10-28T22:08:24Z","git_url":"git://github.com/mbudiu-vmw/hiero.git","ssh_url":"git@github.com:mbudiu-vmw/hiero.git","clone_url":"https://github.com/mbudiu-vmw/hiero.git","svn_url":"https://github.com/mbudiu-vmw/hiero","homepage":null,"size":113,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mbudiu-vmw/hiero/pulls/14"},"html":{"href":"https://github.com/mbudiu-vmw/hiero/pull/14"},"issue":{"href":"https://api.github.com/repos/mbudiu-vmw/hiero/issues/14"},"comments":{"href":"https://api.github.com/repos/mbudiu-vmw/hiero/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/mbudiu-vmw/hiero/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/mbudiu-vmw/hiero/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mbudiu-vmw/hiero/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/mbudiu-vmw/hiero/statuses/635865fc3e6aeccf222923ccb1ea3802358421c2"}}}}
{"actor":{"display_login":"mbudiu-vmw"}}