{"action":"created","comment":{"url":"https://api.github.com/repos/apache/nifi/pulls/comments/66144229","id":66144229,"diff_hunk":"@@ -0,0 +1,154 @@\n+/*\n+ * Licensed to the Apache Software Foundation (ASF) under one or more\n+ * contributor license agreements.  See the NOTICE file distributed with\n+ * this work for additional information regarding copyright ownership.\n+ * The ASF licenses this file to You under the Apache License, Version 2.0\n+ * (the \"License\"); you may not use this file except in compliance with\n+ * 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.nifi.registry;\n+\n+import java.util.ArrayList;\n+import java.util.Collection;\n+import java.util.HashSet;\n+import java.util.List;\n+import java.util.Map;\n+import java.util.Set;\n+\n+public class MultiMap<K,V> implements Map<K,V> {\n+\n+    private final List<Map<K,V>> maps;\n+\n+    MultiMap() {\n+        this.maps = new ArrayList<>();\n+    }\n+\n+    @Override\n+    public int size() {\n+        int size = 0;\n+        for (final Map<K,V> map : maps) {\n+            size += map.size();\n+        }\n+        return size;","path":"nifi-api/src/main/java/org/apache/nifi/registry/MultiMap.java","position":40,"original_position":40,"commit_id":"8052b7adea612dd91c999368a8e55c3622d30035","original_commit_id":"8052b7adea612dd91c999368a8e55c3622d30035","user":{"login":"markap14","id":184268,"avatar_url":"https://avatars.githubusercontent.com/u/184268?v=3","gravatar_id":"","url":"https://api.github.com/users/markap14","html_url":"https://github.com/markap14","followers_url":"https://api.github.com/users/markap14/followers","following_url":"https://api.github.com/users/markap14/following{/other_user}","gists_url":"https://api.github.com/users/markap14/gists{/gist_id}","starred_url":"https://api.github.com/users/markap14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markap14/subscriptions","organizations_url":"https://api.github.com/users/markap14/orgs","repos_url":"https://api.github.com/users/markap14/repos","events_url":"https://api.github.com/users/markap14/events{/privacy}","received_events_url":"https://api.github.com/users/markap14/received_events","type":"User","site_admin":false},"body":"I'm not sure that this is accurate. If two of the maps were to have the same key, the size would be wrong here. Probably will need to create a Set<String> to store all keys in and then return the size of that?","created_at":"2016-06-07T20:16:37Z","updated_at":"2016-06-07T20:16:37Z","html_url":"https://github.com/apache/nifi/pull/501#discussion_r66144229","pull_request_url":"https://api.github.com/repos/apache/nifi/pulls/501","_links":{"self":{"href":"https://api.github.com/repos/apache/nifi/pulls/comments/66144229"},"html":{"href":"https://github.com/apache/nifi/pull/501#discussion_r66144229"},"pull_request":{"href":"https://api.github.com/repos/apache/nifi/pulls/501"}}},"pull_request":{"url":"https://api.github.com/repos/apache/nifi/pulls/501","id":72763720,"html_url":"https://github.com/apache/nifi/pull/501","diff_url":"https://github.com/apache/nifi/pull/501.diff","patch_url":"https://github.com/apache/nifi/pull/501.patch","issue_url":"https://api.github.com/repos/apache/nifi/issues/501","number":501,"state":"open","locked":false,"title":"NIFI-1974 - Support Custom Properties in Expression Language","user":{"login":"YolandaMDavis","id":1371858,"avatar_url":"https://avatars.githubusercontent.com/u/1371858?v=3","gravatar_id":"","url":"https://api.github.com/users/YolandaMDavis","html_url":"https://github.com/YolandaMDavis","followers_url":"https://api.github.com/users/YolandaMDavis/followers","following_url":"https://api.github.com/users/YolandaMDavis/following{/other_user}","gists_url":"https://api.github.com/users/YolandaMDavis/gists{/gist_id}","starred_url":"https://api.github.com/users/YolandaMDavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YolandaMDavis/subscriptions","organizations_url":"https://api.github.com/users/YolandaMDavis/orgs","repos_url":"https://api.github.com/users/YolandaMDavis/repos","events_url":"https://api.github.com/users/YolandaMDavis/events{/privacy}","received_events_url":"https://api.github.com/users/YolandaMDavis/received_events","type":"User","site_admin":false},"body":"This is an initial commit for NIFI-1974 which will support making custom property files available for use in expression languages in NIFI.   ","created_at":"2016-06-06T19:28:39Z","updated_at":"2016-06-07T20:16:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"78933e476188c09ad3215e98068156bcaa8419ed","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/nifi/pulls/501/commits","review_comments_url":"https://api.github.com/repos/apache/nifi/pulls/501/comments","review_comment_url":"https://api.github.com/repos/apache/nifi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/nifi/issues/501/comments","statuses_url":"https://api.github.com/repos/apache/nifi/statuses/8052b7adea612dd91c999368a8e55c3622d30035","head":{"label":"YolandaMDavis:NIFI-1974","ref":"NIFI-1974","sha":"8052b7adea612dd91c999368a8e55c3622d30035","user":{"login":"YolandaMDavis","id":1371858,"avatar_url":"https://avatars.githubusercontent.com/u/1371858?v=3","gravatar_id":"","url":"https://api.github.com/users/YolandaMDavis","html_url":"https://github.com/YolandaMDavis","followers_url":"https://api.github.com/users/YolandaMDavis/followers","following_url":"https://api.github.com/users/YolandaMDavis/following{/other_user}","gists_url":"https://api.github.com/users/YolandaMDavis/gists{/gist_id}","starred_url":"https://api.github.com/users/YolandaMDavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YolandaMDavis/subscriptions","organizations_url":"https://api.github.com/users/YolandaMDavis/orgs","repos_url":"https://api.github.com/users/YolandaMDavis/repos","events_url":"https://api.github.com/users/YolandaMDavis/events{/privacy}","received_events_url":"https://api.github.com/users/YolandaMDavis/received_events","type":"User","site_admin":false},"repo":{"id":56233404,"name":"nifi","full_name":"YolandaMDavis/nifi","owner":{"login":"YolandaMDavis","id":1371858,"avatar_url":"https://avatars.githubusercontent.com/u/1371858?v=3","gravatar_id":"","url":"https://api.github.com/users/YolandaMDavis","html_url":"https://github.com/YolandaMDavis","followers_url":"https://api.github.com/users/YolandaMDavis/followers","following_url":"https://api.github.com/users/YolandaMDavis/following{/other_user}","gists_url":"https://api.github.com/users/YolandaMDavis/gists{/gist_id}","starred_url":"https://api.github.com/users/YolandaMDavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YolandaMDavis/subscriptions","organizations_url":"https://api.github.com/users/YolandaMDavis/orgs","repos_url":"https://api.github.com/users/YolandaMDavis/repos","events_url":"https://api.github.com/users/YolandaMDavis/events{/privacy}","received_events_url":"https://api.github.com/users/YolandaMDavis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/YolandaMDavis/nifi","description":"Mirror of Apache NiFi","fork":true,"url":"https://api.github.com/repos/YolandaMDavis/nifi","forks_url":"https://api.github.com/repos/YolandaMDavis/nifi/forks","keys_url":"https://api.github.com/repos/YolandaMDavis/nifi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YolandaMDavis/nifi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YolandaMDavis/nifi/teams","hooks_url":"https://api.github.com/repos/YolandaMDavis/nifi/hooks","issue_events_url":"https://api.github.com/repos/YolandaMDavis/nifi/issues/events{/number}","events_url":"https://api.github.com/repos/YolandaMDavis/nifi/events","assignees_url":"https://api.github.com/repos/YolandaMDavis/nifi/assignees{/user}","branches_url":"https://api.github.com/repos/YolandaMDavis/nifi/branches{/branch}","tags_url":"https://api.github.com/repos/YolandaMDavis/nifi/tags","blobs_url":"https://api.github.com/repos/YolandaMDavis/nifi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YolandaMDavis/nifi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YolandaMDavis/nifi/git/refs{/sha}","trees_url":"https://api.github.com/repos/YolandaMDavis/nifi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YolandaMDavis/nifi/statuses/{sha}","languages_url":"https://api.github.com/repos/YolandaMDavis/nifi/languages","stargazers_url":"https://api.github.com/repos/YolandaMDavis/nifi/stargazers","contributors_url":"https://api.github.com/repos/YolandaMDavis/nifi/contributors","subscribers_url":"https://api.github.com/repos/YolandaMDavis/nifi/subscribers","subscription_url":"https://api.github.com/repos/YolandaMDavis/nifi/subscription","commits_url":"https://api.github.com/repos/YolandaMDavis/nifi/commits{/sha}","git_commits_url":"https://api.github.com/repos/YolandaMDavis/nifi/git/commits{/sha}","comments_url":"https://api.github.com/repos/YolandaMDavis/nifi/comments{/number}","issue_comment_url":"https://api.github.com/repos/YolandaMDavis/nifi/issues/comments{/number}","contents_url":"https://api.github.com/repos/YolandaMDavis/nifi/contents/{+path}","compare_url":"https://api.github.com/repos/YolandaMDavis/nifi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YolandaMDavis/nifi/merges","archive_url":"https://api.github.com/repos/YolandaMDavis/nifi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YolandaMDavis/nifi/downloads","issues_url":"https://api.github.com/repos/YolandaMDavis/nifi/issues{/number}","pulls_url":"https://api.github.com/repos/YolandaMDavis/nifi/pulls{/number}","milestones_url":"https://api.github.com/repos/YolandaMDavis/nifi/milestones{/number}","notifications_url":"https://api.github.com/repos/YolandaMDavis/nifi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YolandaMDavis/nifi/labels{/name}","releases_url":"https://api.github.com/repos/YolandaMDavis/nifi/releases{/id}","deployments_url":"https://api.github.com/repos/YolandaMDavis/nifi/deployments","created_at":"2016-04-14T11:54:50Z","updated_at":"2016-04-14T11:55:08Z","pushed_at":"2016-06-07T14:59:22Z","git_url":"git://github.com/YolandaMDavis/nifi.git","ssh_url":"git@github.com:YolandaMDavis/nifi.git","clone_url":"https://github.com/YolandaMDavis/nifi.git","svn_url":"https://github.com/YolandaMDavis/nifi","homepage":"","size":48013,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"base":{"label":"apache:0.x","ref":"0.x","sha":"9feeb703686088ff34928b5ed9d5cef6e1d2915f","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":27911088,"name":"nifi","full_name":"apache/nifi","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/nifi","description":"Mirror of Apache NiFi","fork":false,"url":"https://api.github.com/repos/apache/nifi","forks_url":"https://api.github.com/repos/apache/nifi/forks","keys_url":"https://api.github.com/repos/apache/nifi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/nifi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/nifi/teams","hooks_url":"https://api.github.com/repos/apache/nifi/hooks","issue_events_url":"https://api.github.com/repos/apache/nifi/issues/events{/number}","events_url":"https://api.github.com/repos/apache/nifi/events","assignees_url":"https://api.github.com/repos/apache/nifi/assignees{/user}","branches_url":"https://api.github.com/repos/apache/nifi/branches{/branch}","tags_url":"https://api.github.com/repos/apache/nifi/tags","blobs_url":"https://api.github.com/repos/apache/nifi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/nifi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/nifi/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/nifi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/nifi/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/nifi/languages","stargazers_url":"https://api.github.com/repos/apache/nifi/stargazers","contributors_url":"https://api.github.com/repos/apache/nifi/contributors","subscribers_url":"https://api.github.com/repos/apache/nifi/subscribers","subscription_url":"https://api.github.com/repos/apache/nifi/subscription","commits_url":"https://api.github.com/repos/apache/nifi/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/nifi/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/nifi/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/nifi/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/nifi/contents/{+path}","compare_url":"https://api.github.com/repos/apache/nifi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/nifi/merges","archive_url":"https://api.github.com/repos/apache/nifi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/nifi/downloads","issues_url":"https://api.github.com/repos/apache/nifi/issues{/number}","pulls_url":"https://api.github.com/repos/apache/nifi/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/nifi/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/nifi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/nifi/labels{/name}","releases_url":"https://api.github.com/repos/apache/nifi/releases{/id}","deployments_url":"https://api.github.com/repos/apache/nifi/deployments","created_at":"2014-12-12T08:00:05Z","updated_at":"2016-06-03T08:25:28Z","pushed_at":"2016-06-07T20:01:37Z","git_url":"git://github.com/apache/nifi.git","ssh_url":"git@github.com:apache/nifi.git","clone_url":"https://github.com/apache/nifi.git","svn_url":"https://github.com/apache/nifi","homepage":"","size":67612,"stargazers_count":286,"watchers_count":286,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":261,"mirror_url":"git://git.apache.org/nifi.git","open_issues_count":55,"forks":261,"open_issues":55,"watchers":286,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/nifi/pulls/501"},"html":{"href":"https://github.com/apache/nifi/pull/501"},"issue":{"href":"https://api.github.com/repos/apache/nifi/issues/501"},"comments":{"href":"https://api.github.com/repos/apache/nifi/issues/501/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/nifi/pulls/501/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/nifi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/nifi/pulls/501/commits"},"statuses":{"href":"https://api.github.com/repos/apache/nifi/statuses/8052b7adea612dd91c999368a8e55c3622d30035"}}}}
{"actor":{"display_login":"markap14"}}