{"action":"created","comment":{"url":"https://api.github.com/repos/wso2/siddhi/pulls/comments/47220701","id":47220701,"diff_hunk":"@@ -0,0 +1,131 @@\n+/*\n+ * Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.\n+ *\n+ * WSO2 Inc. licenses this file to you under the Apache License,\n+ * Version 2.0 (the \"License\"); you may not use this file except\n+ * 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,\n+ * software distributed under the License is distributed on an\n+ * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n+ * KIND, either express or implied. See the License for the\n+ * specific language governing permissions and limitations\n+ * under the License.\n+ */\n+\n+package org.wso2.siddhi.extension.map;\n+\n+import org.wso2.siddhi.core.config.ExecutionPlanContext;\n+import org.wso2.siddhi.core.exception.ExecutionPlanRuntimeException;\n+import org.wso2.siddhi.core.executor.ExpressionExecutor;\n+import org.wso2.siddhi.core.executor.function.FunctionExecutor;\n+import org.wso2.siddhi.query.api.definition.Attribute;\n+import org.wso2.siddhi.query.api.exception.ExecutionPlanValidationException;\n+\n+import java.util.HashMap;\n+\n+/**\n+ * get(HashMap , Key , Type)\n+ * Returns required attribute value'.\n+ * Accept Type(s): (HashMap , ValidAttributeType , ValidAttributeType)\n+ * Return Type(s): Object\n+ */\n+public class GetFunctionExtension extends FunctionExecutor {\n+    static final org.apache.log4j.Logger log = org.apache.log4j.Logger.getLogger(GetFunctionExtension.class);\n+    Attribute.Type returnType = Attribute.Type.STRING;\n+    private HashMap hashMap;\n+","path":"modules/siddhi-extensions/map/src/main/java/org/wso2/siddhi/extension/map/GetFunctionExtension.java","position":40,"original_position":40,"commit_id":"f38e665b3b292c58f1af93e751ec1481670fd26d","original_commit_id":"f38e665b3b292c58f1af93e751ec1481670fd26d","user":{"login":"tishan89","id":1623470,"avatar_url":"https://avatars.githubusercontent.com/u/1623470?v=3","gravatar_id":"","url":"https://api.github.com/users/tishan89","html_url":"https://github.com/tishan89","followers_url":"https://api.github.com/users/tishan89/followers","following_url":"https://api.github.com/users/tishan89/following{/other_user}","gists_url":"https://api.github.com/users/tishan89/gists{/gist_id}","starred_url":"https://api.github.com/users/tishan89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tishan89/subscriptions","organizations_url":"https://api.github.com/users/tishan89/orgs","repos_url":"https://api.github.com/users/tishan89/repos","events_url":"https://api.github.com/users/tishan89/events{/privacy}","received_events_url":"https://api.github.com/users/tishan89/received_events","type":"User","site_admin":false},"body":"Same as above class","created_at":"2015-12-10T12:34:39Z","updated_at":"2015-12-10T12:34:39Z","html_url":"https://github.com/wso2/siddhi/pull/99#discussion_r47220701","pull_request_url":"https://api.github.com/repos/wso2/siddhi/pulls/99","_links":{"self":{"href":"https://api.github.com/repos/wso2/siddhi/pulls/comments/47220701"},"html":{"href":"https://github.com/wso2/siddhi/pull/99#discussion_r47220701"},"pull_request":{"href":"https://api.github.com/repos/wso2/siddhi/pulls/99"}}},"pull_request":{"url":"https://api.github.com/repos/wso2/siddhi/pulls/99","id":53248248,"html_url":"https://github.com/wso2/siddhi/pull/99","diff_url":"https://github.com/wso2/siddhi/pull/99.diff","patch_url":"https://github.com/wso2/siddhi/pull/99.patch","issue_url":"https://api.github.com/repos/wso2/siddhi/issues/99","number":99,"state":"open","locked":false,"title":"Siddhi:Map Extension","user":{"login":"minudika","id":6940029,"avatar_url":"https://avatars.githubusercontent.com/u/6940029?v=3","gravatar_id":"","url":"https://api.github.com/users/minudika","html_url":"https://github.com/minudika","followers_url":"https://api.github.com/users/minudika/followers","following_url":"https://api.github.com/users/minudika/following{/other_user}","gists_url":"https://api.github.com/users/minudika/gists{/gist_id}","starred_url":"https://api.github.com/users/minudika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minudika/subscriptions","organizations_url":"https://api.github.com/users/minudika/orgs","repos_url":"https://api.github.com/users/minudika/repos","events_url":"https://api.github.com/users/minudika/events{/privacy}","received_events_url":"https://api.github.com/users/minudika/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-10T11:48:26Z","updated_at":"2015-12-10T12:34:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4f987e2c7a0a431fef1bf53a21df7a8b0984ddcf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wso2/siddhi/pulls/99/commits","review_comments_url":"https://api.github.com/repos/wso2/siddhi/pulls/99/comments","review_comment_url":"https://api.github.com/repos/wso2/siddhi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/siddhi/issues/99/comments","statuses_url":"https://api.github.com/repos/wso2/siddhi/statuses/f38e665b3b292c58f1af93e751ec1481670fd26d","head":{"label":"minudika:master","ref":"master","sha":"f38e665b3b292c58f1af93e751ec1481670fd26d","user":{"login":"minudika","id":6940029,"avatar_url":"https://avatars.githubusercontent.com/u/6940029?v=3","gravatar_id":"","url":"https://api.github.com/users/minudika","html_url":"https://github.com/minudika","followers_url":"https://api.github.com/users/minudika/followers","following_url":"https://api.github.com/users/minudika/following{/other_user}","gists_url":"https://api.github.com/users/minudika/gists{/gist_id}","starred_url":"https://api.github.com/users/minudika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minudika/subscriptions","organizations_url":"https://api.github.com/users/minudika/orgs","repos_url":"https://api.github.com/users/minudika/repos","events_url":"https://api.github.com/users/minudika/events{/privacy}","received_events_url":"https://api.github.com/users/minudika/received_events","type":"User","site_admin":false},"repo":{"id":45461137,"name":"siddhi","full_name":"minudika/siddhi","owner":{"login":"minudika","id":6940029,"avatar_url":"https://avatars.githubusercontent.com/u/6940029?v=3","gravatar_id":"","url":"https://api.github.com/users/minudika","html_url":"https://github.com/minudika","followers_url":"https://api.github.com/users/minudika/followers","following_url":"https://api.github.com/users/minudika/following{/other_user}","gists_url":"https://api.github.com/users/minudika/gists{/gist_id}","starred_url":"https://api.github.com/users/minudika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minudika/subscriptions","organizations_url":"https://api.github.com/users/minudika/orgs","repos_url":"https://api.github.com/users/minudika/repos","events_url":"https://api.github.com/users/minudika/events{/privacy}","received_events_url":"https://api.github.com/users/minudika/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/minudika/siddhi","description":"Siddhi CEP is a lightweight, easy-to-use Open Source Complex Event Processing Engine (CEP) ","fork":true,"url":"https://api.github.com/repos/minudika/siddhi","forks_url":"https://api.github.com/repos/minudika/siddhi/forks","keys_url":"https://api.github.com/repos/minudika/siddhi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/minudika/siddhi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/minudika/siddhi/teams","hooks_url":"https://api.github.com/repos/minudika/siddhi/hooks","issue_events_url":"https://api.github.com/repos/minudika/siddhi/issues/events{/number}","events_url":"https://api.github.com/repos/minudika/siddhi/events","assignees_url":"https://api.github.com/repos/minudika/siddhi/assignees{/user}","branches_url":"https://api.github.com/repos/minudika/siddhi/branches{/branch}","tags_url":"https://api.github.com/repos/minudika/siddhi/tags","blobs_url":"https://api.github.com/repos/minudika/siddhi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/minudika/siddhi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/minudika/siddhi/git/refs{/sha}","trees_url":"https://api.github.com/repos/minudika/siddhi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/minudika/siddhi/statuses/{sha}","languages_url":"https://api.github.com/repos/minudika/siddhi/languages","stargazers_url":"https://api.github.com/repos/minudika/siddhi/stargazers","contributors_url":"https://api.github.com/repos/minudika/siddhi/contributors","subscribers_url":"https://api.github.com/repos/minudika/siddhi/subscribers","subscription_url":"https://api.github.com/repos/minudika/siddhi/subscription","commits_url":"https://api.github.com/repos/minudika/siddhi/commits{/sha}","git_commits_url":"https://api.github.com/repos/minudika/siddhi/git/commits{/sha}","comments_url":"https://api.github.com/repos/minudika/siddhi/comments{/number}","issue_comment_url":"https://api.github.com/repos/minudika/siddhi/issues/comments{/number}","contents_url":"https://api.github.com/repos/minudika/siddhi/contents/{+path}","compare_url":"https://api.github.com/repos/minudika/siddhi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/minudika/siddhi/merges","archive_url":"https://api.github.com/repos/minudika/siddhi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/minudika/siddhi/downloads","issues_url":"https://api.github.com/repos/minudika/siddhi/issues{/number}","pulls_url":"https://api.github.com/repos/minudika/siddhi/pulls{/number}","milestones_url":"https://api.github.com/repos/minudika/siddhi/milestones{/number}","notifications_url":"https://api.github.com/repos/minudika/siddhi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/minudika/siddhi/labels{/name}","releases_url":"https://api.github.com/repos/minudika/siddhi/releases{/id}","created_at":"2015-11-03T11:09:17Z","updated_at":"2015-11-06T06:44:12Z","pushed_at":"2015-12-10T11:44:37Z","git_url":"git://github.com/minudika/siddhi.git","ssh_url":"git@github.com:minudika/siddhi.git","clone_url":"https://github.com/minudika/siddhi.git","svn_url":"https://github.com/minudika/siddhi","homepage":"http://wso2.com/products/complex-event-processor/","size":4092,"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":"wso2:master","ref":"master","sha":"66d8f4a3e04fb816f05d2eac14e978fd319278ff","user":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"repo":{"id":18988631,"name":"siddhi","full_name":"wso2/siddhi","owner":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wso2/siddhi","description":"","fork":false,"url":"https://api.github.com/repos/wso2/siddhi","forks_url":"https://api.github.com/repos/wso2/siddhi/forks","keys_url":"https://api.github.com/repos/wso2/siddhi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/siddhi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/siddhi/teams","hooks_url":"https://api.github.com/repos/wso2/siddhi/hooks","issue_events_url":"https://api.github.com/repos/wso2/siddhi/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/siddhi/events","assignees_url":"https://api.github.com/repos/wso2/siddhi/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/siddhi/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/siddhi/tags","blobs_url":"https://api.github.com/repos/wso2/siddhi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/siddhi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/siddhi/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/siddhi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/siddhi/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/siddhi/languages","stargazers_url":"https://api.github.com/repos/wso2/siddhi/stargazers","contributors_url":"https://api.github.com/repos/wso2/siddhi/contributors","subscribers_url":"https://api.github.com/repos/wso2/siddhi/subscribers","subscription_url":"https://api.github.com/repos/wso2/siddhi/subscription","commits_url":"https://api.github.com/repos/wso2/siddhi/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/siddhi/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/siddhi/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/siddhi/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2/siddhi/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/siddhi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/siddhi/merges","archive_url":"https://api.github.com/repos/wso2/siddhi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/siddhi/downloads","issues_url":"https://api.github.com/repos/wso2/siddhi/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/siddhi/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/siddhi/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/siddhi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/siddhi/labels{/name}","releases_url":"https://api.github.com/repos/wso2/siddhi/releases{/id}","created_at":"2014-04-21T09:51:36Z","updated_at":"2015-12-07T12:22:53Z","pushed_at":"2015-12-10T11:48:27Z","git_url":"git://github.com/wso2/siddhi.git","ssh_url":"git@github.com:wso2/siddhi.git","clone_url":"https://github.com/wso2/siddhi.git","svn_url":"https://github.com/wso2/siddhi","homepage":null,"size":13212,"stargazers_count":112,"watchers_count":112,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":88,"mirror_url":null,"open_issues_count":11,"forks":88,"open_issues":11,"watchers":112,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/siddhi/pulls/99"},"html":{"href":"https://github.com/wso2/siddhi/pull/99"},"issue":{"href":"https://api.github.com/repos/wso2/siddhi/issues/99"},"comments":{"href":"https://api.github.com/repos/wso2/siddhi/issues/99/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/siddhi/pulls/99/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/siddhi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/siddhi/pulls/99/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/siddhi/statuses/f38e665b3b292c58f1af93e751ec1481670fd26d"}}}}