{"action":"created","comment":{"url":"https://api.github.com/repos/linkedin/gobblin/pulls/comments/105117350","pull_request_review_id":25979966,"id":105117350,"diff_hunk":"@@ -0,0 +1,46 @@\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 gobblin.compliance.purger;\n+\n+import com.google.common.base.Preconditions;\n+\n+import lombok.AllArgsConstructor;\n+import lombok.extern.slf4j.Slf4j;\n+\n+import gobblin.compliance.ComplianceConfigurationKeys;\n+import gobblin.compliance.HivePartitionDataset;\n+\n+\n+/**\n+ * A policy class to determine if a dataset should be purged or not.\n+ */\n+@AllArgsConstructor\n+@Slf4j\n+public class HivePurgerPolicy implements PurgePolicy<HivePartitionDataset> {\n+  private String watermark;\n+\n+  public boolean shouldPurge(HivePartitionDataset dataset) {\n+    Preconditions.checkNotNull(this.watermark, \"Watermark is set to null in HivePurgerPolicy\");","path":"gobblin-modules/gobblin-compliance/src/main/java/gobblin/compliance/purger/HivePurgerPolicy.java","position":37,"original_position":37,"commit_id":"5840378cbf8b974949e21768ac2e8fdaafc30ec5","original_commit_id":"5840378cbf8b974949e21768ac2e8fdaafc30ec5","user":{"login":"aditya1105","id":20373170,"avatar_url":"https://avatars1.githubusercontent.com/u/20373170?v=3","gravatar_id":"","url":"https://api.github.com/users/aditya1105","html_url":"https://github.com/aditya1105","followers_url":"https://api.github.com/users/aditya1105/followers","following_url":"https://api.github.com/users/aditya1105/following{/other_user}","gists_url":"https://api.github.com/users/aditya1105/gists{/gist_id}","starred_url":"https://api.github.com/users/aditya1105/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aditya1105/subscriptions","organizations_url":"https://api.github.com/users/aditya1105/orgs","repos_url":"https://api.github.com/users/aditya1105/repos","events_url":"https://api.github.com/users/aditya1105/events{/privacy}","received_events_url":"https://api.github.com/users/aditya1105/received_events","type":"User","site_admin":false},"body":"True. Changed it.","created_at":"2017-03-09T09:18:14Z","updated_at":"2017-03-09T09:18:14Z","html_url":"https://github.com/linkedin/gobblin/pull/1685#discussion_r105117350","pull_request_url":"https://api.github.com/repos/linkedin/gobblin/pulls/1685","_links":{"self":{"href":"https://api.github.com/repos/linkedin/gobblin/pulls/comments/105117350"},"html":{"href":"https://github.com/linkedin/gobblin/pull/1685#discussion_r105117350"},"pull_request":{"href":"https://api.github.com/repos/linkedin/gobblin/pulls/1685"}}},"pull_request":{"url":"https://api.github.com/repos/linkedin/gobblin/pulls/1685","id":109650702,"html_url":"https://github.com/linkedin/gobblin/pull/1685","diff_url":"https://github.com/linkedin/gobblin/pull/1685.diff","patch_url":"https://github.com/linkedin/gobblin/pull/1685.patch","issue_url":"https://api.github.com/repos/linkedin/gobblin/issues/1685","number":1685,"state":"open","locked":false,"title":"Added purger to gobblin-compliance","user":{"login":"aditya1105","id":20373170,"avatar_url":"https://avatars1.githubusercontent.com/u/20373170?v=3","gravatar_id":"","url":"https://api.github.com/users/aditya1105","html_url":"https://github.com/aditya1105","followers_url":"https://api.github.com/users/aditya1105/followers","following_url":"https://api.github.com/users/aditya1105/following{/other_user}","gists_url":"https://api.github.com/users/aditya1105/gists{/gist_id}","starred_url":"https://api.github.com/users/aditya1105/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aditya1105/subscriptions","organizations_url":"https://api.github.com/users/aditya1105/orgs","repos_url":"https://api.github.com/users/aditya1105/repos","events_url":"https://api.github.com/users/aditya1105/events{/privacy}","received_events_url":"https://api.github.com/users/aditya1105/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-03-08T08:40:27Z","updated_at":"2017-03-09T09:18:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2e694052bdb2af19bcc425c415f8ad0257b0576d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/linkedin/gobblin/pulls/1685/commits","review_comments_url":"https://api.github.com/repos/linkedin/gobblin/pulls/1685/comments","review_comment_url":"https://api.github.com/repos/linkedin/gobblin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/linkedin/gobblin/issues/1685/comments","statuses_url":"https://api.github.com/repos/linkedin/gobblin/statuses/5840378cbf8b974949e21768ac2e8fdaafc30ec5","head":{"label":"aditya1105:purger","ref":"purger","sha":"5840378cbf8b974949e21768ac2e8fdaafc30ec5","user":{"login":"aditya1105","id":20373170,"avatar_url":"https://avatars1.githubusercontent.com/u/20373170?v=3","gravatar_id":"","url":"https://api.github.com/users/aditya1105","html_url":"https://github.com/aditya1105","followers_url":"https://api.github.com/users/aditya1105/followers","following_url":"https://api.github.com/users/aditya1105/following{/other_user}","gists_url":"https://api.github.com/users/aditya1105/gists{/gist_id}","starred_url":"https://api.github.com/users/aditya1105/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aditya1105/subscriptions","organizations_url":"https://api.github.com/users/aditya1105/orgs","repos_url":"https://api.github.com/users/aditya1105/repos","events_url":"https://api.github.com/users/aditya1105/events{/privacy}","received_events_url":"https://api.github.com/users/aditya1105/received_events","type":"User","site_admin":false},"repo":{"id":71459393,"name":"gobblin","full_name":"aditya1105/gobblin","owner":{"login":"aditya1105","id":20373170,"avatar_url":"https://avatars1.githubusercontent.com/u/20373170?v=3","gravatar_id":"","url":"https://api.github.com/users/aditya1105","html_url":"https://github.com/aditya1105","followers_url":"https://api.github.com/users/aditya1105/followers","following_url":"https://api.github.com/users/aditya1105/following{/other_user}","gists_url":"https://api.github.com/users/aditya1105/gists{/gist_id}","starred_url":"https://api.github.com/users/aditya1105/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aditya1105/subscriptions","organizations_url":"https://api.github.com/users/aditya1105/orgs","repos_url":"https://api.github.com/users/aditya1105/repos","events_url":"https://api.github.com/users/aditya1105/events{/privacy}","received_events_url":"https://api.github.com/users/aditya1105/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aditya1105/gobblin","description":"Universal data ingestion framework for Hadoop.","fork":true,"url":"https://api.github.com/repos/aditya1105/gobblin","forks_url":"https://api.github.com/repos/aditya1105/gobblin/forks","keys_url":"https://api.github.com/repos/aditya1105/gobblin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aditya1105/gobblin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aditya1105/gobblin/teams","hooks_url":"https://api.github.com/repos/aditya1105/gobblin/hooks","issue_events_url":"https://api.github.com/repos/aditya1105/gobblin/issues/events{/number}","events_url":"https://api.github.com/repos/aditya1105/gobblin/events","assignees_url":"https://api.github.com/repos/aditya1105/gobblin/assignees{/user}","branches_url":"https://api.github.com/repos/aditya1105/gobblin/branches{/branch}","tags_url":"https://api.github.com/repos/aditya1105/gobblin/tags","blobs_url":"https://api.github.com/repos/aditya1105/gobblin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aditya1105/gobblin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aditya1105/gobblin/git/refs{/sha}","trees_url":"https://api.github.com/repos/aditya1105/gobblin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aditya1105/gobblin/statuses/{sha}","languages_url":"https://api.github.com/repos/aditya1105/gobblin/languages","stargazers_url":"https://api.github.com/repos/aditya1105/gobblin/stargazers","contributors_url":"https://api.github.com/repos/aditya1105/gobblin/contributors","subscribers_url":"https://api.github.com/repos/aditya1105/gobblin/subscribers","subscription_url":"https://api.github.com/repos/aditya1105/gobblin/subscription","commits_url":"https://api.github.com/repos/aditya1105/gobblin/commits{/sha}","git_commits_url":"https://api.github.com/repos/aditya1105/gobblin/git/commits{/sha}","comments_url":"https://api.github.com/repos/aditya1105/gobblin/comments{/number}","issue_comment_url":"https://api.github.com/repos/aditya1105/gobblin/issues/comments{/number}","contents_url":"https://api.github.com/repos/aditya1105/gobblin/contents/{+path}","compare_url":"https://api.github.com/repos/aditya1105/gobblin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aditya1105/gobblin/merges","archive_url":"https://api.github.com/repos/aditya1105/gobblin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aditya1105/gobblin/downloads","issues_url":"https://api.github.com/repos/aditya1105/gobblin/issues{/number}","pulls_url":"https://api.github.com/repos/aditya1105/gobblin/pulls{/number}","milestones_url":"https://api.github.com/repos/aditya1105/gobblin/milestones{/number}","notifications_url":"https://api.github.com/repos/aditya1105/gobblin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aditya1105/gobblin/labels{/name}","releases_url":"https://api.github.com/repos/aditya1105/gobblin/releases{/id}","deployments_url":"https://api.github.com/repos/aditya1105/gobblin/deployments","created_at":"2016-10-20T12:10:56Z","updated_at":"2016-10-20T12:11:01Z","pushed_at":"2017-03-08T13:45:25Z","git_url":"git://github.com/aditya1105/gobblin.git","ssh_url":"git@github.com:aditya1105/gobblin.git","clone_url":"https://github.com/aditya1105/gobblin.git","svn_url":"https://github.com/aditya1105/gobblin","homepage":"https://github.com/linkedin/gobblin/wiki","size":105358,"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":"linkedin:master","ref":"master","sha":"ddc021e562002a4dbdede8b8b00887044bf8c49e","user":{"login":"linkedin","id":357098,"avatar_url":"https://avatars0.githubusercontent.com/u/357098?v=3","gravatar_id":"","url":"https://api.github.com/users/linkedin","html_url":"https://github.com/linkedin","followers_url":"https://api.github.com/users/linkedin/followers","following_url":"https://api.github.com/users/linkedin/following{/other_user}","gists_url":"https://api.github.com/users/linkedin/gists{/gist_id}","starred_url":"https://api.github.com/users/linkedin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linkedin/subscriptions","organizations_url":"https://api.github.com/users/linkedin/orgs","repos_url":"https://api.github.com/users/linkedin/repos","events_url":"https://api.github.com/users/linkedin/events{/privacy}","received_events_url":"https://api.github.com/users/linkedin/received_events","type":"Organization","site_admin":false},"repo":{"id":27392543,"name":"gobblin","full_name":"linkedin/gobblin","owner":{"login":"linkedin","id":357098,"avatar_url":"https://avatars0.githubusercontent.com/u/357098?v=3","gravatar_id":"","url":"https://api.github.com/users/linkedin","html_url":"https://github.com/linkedin","followers_url":"https://api.github.com/users/linkedin/followers","following_url":"https://api.github.com/users/linkedin/following{/other_user}","gists_url":"https://api.github.com/users/linkedin/gists{/gist_id}","starred_url":"https://api.github.com/users/linkedin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linkedin/subscriptions","organizations_url":"https://api.github.com/users/linkedin/orgs","repos_url":"https://api.github.com/users/linkedin/repos","events_url":"https://api.github.com/users/linkedin/events{/privacy}","received_events_url":"https://api.github.com/users/linkedin/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/linkedin/gobblin","description":"Gobblin is a distributed big data integration framework (ingestion, replication, compliance, retention)  for batch and streaming systems. Gobblin features integrations with Apache Hadoop, Apache Kafka, Salesforce, S3, MySQL, Google etc.","fork":false,"url":"https://api.github.com/repos/linkedin/gobblin","forks_url":"https://api.github.com/repos/linkedin/gobblin/forks","keys_url":"https://api.github.com/repos/linkedin/gobblin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/linkedin/gobblin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/linkedin/gobblin/teams","hooks_url":"https://api.github.com/repos/linkedin/gobblin/hooks","issue_events_url":"https://api.github.com/repos/linkedin/gobblin/issues/events{/number}","events_url":"https://api.github.com/repos/linkedin/gobblin/events","assignees_url":"https://api.github.com/repos/linkedin/gobblin/assignees{/user}","branches_url":"https://api.github.com/repos/linkedin/gobblin/branches{/branch}","tags_url":"https://api.github.com/repos/linkedin/gobblin/tags","blobs_url":"https://api.github.com/repos/linkedin/gobblin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/linkedin/gobblin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/linkedin/gobblin/git/refs{/sha}","trees_url":"https://api.github.com/repos/linkedin/gobblin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/linkedin/gobblin/statuses/{sha}","languages_url":"https://api.github.com/repos/linkedin/gobblin/languages","stargazers_url":"https://api.github.com/repos/linkedin/gobblin/stargazers","contributors_url":"https://api.github.com/repos/linkedin/gobblin/contributors","subscribers_url":"https://api.github.com/repos/linkedin/gobblin/subscribers","subscription_url":"https://api.github.com/repos/linkedin/gobblin/subscription","commits_url":"https://api.github.com/repos/linkedin/gobblin/commits{/sha}","git_commits_url":"https://api.github.com/repos/linkedin/gobblin/git/commits{/sha}","comments_url":"https://api.github.com/repos/linkedin/gobblin/comments{/number}","issue_comment_url":"https://api.github.com/repos/linkedin/gobblin/issues/comments{/number}","contents_url":"https://api.github.com/repos/linkedin/gobblin/contents/{+path}","compare_url":"https://api.github.com/repos/linkedin/gobblin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/linkedin/gobblin/merges","archive_url":"https://api.github.com/repos/linkedin/gobblin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/linkedin/gobblin/downloads","issues_url":"https://api.github.com/repos/linkedin/gobblin/issues{/number}","pulls_url":"https://api.github.com/repos/linkedin/gobblin/pulls{/number}","milestones_url":"https://api.github.com/repos/linkedin/gobblin/milestones{/number}","notifications_url":"https://api.github.com/repos/linkedin/gobblin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/linkedin/gobblin/labels{/name}","releases_url":"https://api.github.com/repos/linkedin/gobblin/releases{/id}","deployments_url":"https://api.github.com/repos/linkedin/gobblin/deployments","created_at":"2014-12-01T18:10:50Z","updated_at":"2017-03-08T11:05:49Z","pushed_at":"2017-03-09T07:40:35Z","git_url":"git://github.com/linkedin/gobblin.git","ssh_url":"git@github.com:linkedin/gobblin.git","clone_url":"https://github.com/linkedin/gobblin.git","svn_url":"https://github.com/linkedin/gobblin","homepage":"https://github.com/linkedin/gobblin/wiki","size":108009,"stargazers_count":881,"watchers_count":881,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":362,"mirror_url":null,"open_issues_count":125,"forks":362,"open_issues":125,"watchers":881,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/linkedin/gobblin/pulls/1685"},"html":{"href":"https://github.com/linkedin/gobblin/pull/1685"},"issue":{"href":"https://api.github.com/repos/linkedin/gobblin/issues/1685"},"comments":{"href":"https://api.github.com/repos/linkedin/gobblin/issues/1685/comments"},"review_comments":{"href":"https://api.github.com/repos/linkedin/gobblin/pulls/1685/comments"},"review_comment":{"href":"https://api.github.com/repos/linkedin/gobblin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/linkedin/gobblin/pulls/1685/commits"},"statuses":{"href":"https://api.github.com/repos/linkedin/gobblin/statuses/5840378cbf8b974949e21768ac2e8fdaafc30ec5"}}}}
{"actor":{"display_login":"aditya1105"}}