{"action":"created","comment":{"url":"https://api.github.com/repos/locationtech/geomesa/pulls/comments/45378953","id":45378953,"diff_hunk":"@@ -0,0 +1,61 @@\n+/***********************************************************************\n+  * Copyright (c) 2013-2015 Commonwealth Computer Research, Inc.\n+  * All rights reserved. This program and the accompanying materials\n+  * are made available under the terms of the Apache License, Version 2.0 which\n+  * accompanies this distribution and is available at\n+  * http://www.opensource.org/licenses/apache2.0.php.\n+  *************************************************************************/\n+\n+package org.locationtech.geomesa.utils.stats\n+\n+import org.opengis.feature.simple.SimpleFeature\n+\n+\n+case class MinMax[T <: Comparable[T]](attribute: String) extends Stat {\n+\n+  var min: T = _\n+  var max: T = _\n+\n+  override def observe(sf: SimpleFeature): Unit = {\n+\n+    val sfval = sf.getAttribute(attribute)","path":"geomesa-utils/src/main/scala/org/locationtech/geomesa/utils/stats/MinMax.scala","position":21,"original_position":21,"commit_id":"3d37eeabe4bfed43bb358b70aa3b49df17998eee","original_commit_id":"3d37eeabe4bfed43bb358b70aa3b49df17998eee","user":{"login":"anthonyccri","id":893732,"avatar_url":"https://avatars.githubusercontent.com/u/893732?v=3","gravatar_id":"","url":"https://api.github.com/users/anthonyccri","html_url":"https://github.com/anthonyccri","followers_url":"https://api.github.com/users/anthonyccri/followers","following_url":"https://api.github.com/users/anthonyccri/following{/other_user}","gists_url":"https://api.github.com/users/anthonyccri/gists{/gist_id}","starred_url":"https://api.github.com/users/anthonyccri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthonyccri/subscriptions","organizations_url":"https://api.github.com/users/anthonyccri/orgs","repos_url":"https://api.github.com/users/anthonyccri/repos","events_url":"https://api.github.com/users/anthonyccri/events{/privacy}","received_events_url":"https://api.github.com/users/anthonyccri/received_events","type":"User","site_admin":false},"body":"Use and cache the index of the attribute for performance.","created_at":"2015-11-19T18:22:34Z","updated_at":"2015-11-19T18:22:34Z","html_url":"https://github.com/locationtech/geomesa/pull/720#discussion_r45378953","pull_request_url":"https://api.github.com/repos/locationtech/geomesa/pulls/720","_links":{"self":{"href":"https://api.github.com/repos/locationtech/geomesa/pulls/comments/45378953"},"html":{"href":"https://github.com/locationtech/geomesa/pull/720#discussion_r45378953"},"pull_request":{"href":"https://api.github.com/repos/locationtech/geomesa/pulls/720"}}},"pull_request":{"url":"https://api.github.com/repos/locationtech/geomesa/pulls/720","id":51129719,"html_url":"https://github.com/locationtech/geomesa/pull/720","diff_url":"https://github.com/locationtech/geomesa/pull/720.diff","patch_url":"https://github.com/locationtech/geomesa/pull/720.patch","issue_url":"https://api.github.com/repos/locationtech/geomesa/issues/720","number":720,"state":"open","locked":false,"title":"WIP for Stats framework.","user":{"login":"jnh5y","id":1915111,"avatar_url":"https://avatars.githubusercontent.com/u/1915111?v=3","gravatar_id":"","url":"https://api.github.com/users/jnh5y","html_url":"https://github.com/jnh5y","followers_url":"https://api.github.com/users/jnh5y/followers","following_url":"https://api.github.com/users/jnh5y/following{/other_user}","gists_url":"https://api.github.com/users/jnh5y/gists{/gist_id}","starred_url":"https://api.github.com/users/jnh5y/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnh5y/subscriptions","organizations_url":"https://api.github.com/users/jnh5y/orgs","repos_url":"https://api.github.com/users/jnh5y/repos","events_url":"https://api.github.com/users/jnh5y/events{/privacy}","received_events_url":"https://api.github.com/users/jnh5y/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-18T19:27:13Z","updated_at":"2015-11-19T18:22:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f581b9e20c369d52ab92f6918cfe6db83c6254eb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/locationtech/geomesa/pulls/720/commits","review_comments_url":"https://api.github.com/repos/locationtech/geomesa/pulls/720/comments","review_comment_url":"https://api.github.com/repos/locationtech/geomesa/pulls/comments{/number}","comments_url":"https://api.github.com/repos/locationtech/geomesa/issues/720/comments","statuses_url":"https://api.github.com/repos/locationtech/geomesa/statuses/3d37eeabe4bfed43bb358b70aa3b49df17998eee","head":{"label":"jnh5y:wip_stats","ref":"wip_stats","sha":"3d37eeabe4bfed43bb358b70aa3b49df17998eee","user":{"login":"jnh5y","id":1915111,"avatar_url":"https://avatars.githubusercontent.com/u/1915111?v=3","gravatar_id":"","url":"https://api.github.com/users/jnh5y","html_url":"https://github.com/jnh5y","followers_url":"https://api.github.com/users/jnh5y/followers","following_url":"https://api.github.com/users/jnh5y/following{/other_user}","gists_url":"https://api.github.com/users/jnh5y/gists{/gist_id}","starred_url":"https://api.github.com/users/jnh5y/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnh5y/subscriptions","organizations_url":"https://api.github.com/users/jnh5y/orgs","repos_url":"https://api.github.com/users/jnh5y/repos","events_url":"https://api.github.com/users/jnh5y/events{/privacy}","received_events_url":"https://api.github.com/users/jnh5y/received_events","type":"User","site_admin":false},"repo":{"id":21140000,"name":"geomesa","full_name":"jnh5y/geomesa","owner":{"login":"jnh5y","id":1915111,"avatar_url":"https://avatars.githubusercontent.com/u/1915111?v=3","gravatar_id":"","url":"https://api.github.com/users/jnh5y","html_url":"https://github.com/jnh5y","followers_url":"https://api.github.com/users/jnh5y/followers","following_url":"https://api.github.com/users/jnh5y/following{/other_user}","gists_url":"https://api.github.com/users/jnh5y/gists{/gist_id}","starred_url":"https://api.github.com/users/jnh5y/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnh5y/subscriptions","organizations_url":"https://api.github.com/users/jnh5y/orgs","repos_url":"https://api.github.com/users/jnh5y/repos","events_url":"https://api.github.com/users/jnh5y/events{/privacy}","received_events_url":"https://api.github.com/users/jnh5y/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jnh5y/geomesa","description":"","fork":true,"url":"https://api.github.com/repos/jnh5y/geomesa","forks_url":"https://api.github.com/repos/jnh5y/geomesa/forks","keys_url":"https://api.github.com/repos/jnh5y/geomesa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jnh5y/geomesa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jnh5y/geomesa/teams","hooks_url":"https://api.github.com/repos/jnh5y/geomesa/hooks","issue_events_url":"https://api.github.com/repos/jnh5y/geomesa/issues/events{/number}","events_url":"https://api.github.com/repos/jnh5y/geomesa/events","assignees_url":"https://api.github.com/repos/jnh5y/geomesa/assignees{/user}","branches_url":"https://api.github.com/repos/jnh5y/geomesa/branches{/branch}","tags_url":"https://api.github.com/repos/jnh5y/geomesa/tags","blobs_url":"https://api.github.com/repos/jnh5y/geomesa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jnh5y/geomesa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jnh5y/geomesa/git/refs{/sha}","trees_url":"https://api.github.com/repos/jnh5y/geomesa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jnh5y/geomesa/statuses/{sha}","languages_url":"https://api.github.com/repos/jnh5y/geomesa/languages","stargazers_url":"https://api.github.com/repos/jnh5y/geomesa/stargazers","contributors_url":"https://api.github.com/repos/jnh5y/geomesa/contributors","subscribers_url":"https://api.github.com/repos/jnh5y/geomesa/subscribers","subscription_url":"https://api.github.com/repos/jnh5y/geomesa/subscription","commits_url":"https://api.github.com/repos/jnh5y/geomesa/commits{/sha}","git_commits_url":"https://api.github.com/repos/jnh5y/geomesa/git/commits{/sha}","comments_url":"https://api.github.com/repos/jnh5y/geomesa/comments{/number}","issue_comment_url":"https://api.github.com/repos/jnh5y/geomesa/issues/comments{/number}","contents_url":"https://api.github.com/repos/jnh5y/geomesa/contents/{+path}","compare_url":"https://api.github.com/repos/jnh5y/geomesa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jnh5y/geomesa/merges","archive_url":"https://api.github.com/repos/jnh5y/geomesa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jnh5y/geomesa/downloads","issues_url":"https://api.github.com/repos/jnh5y/geomesa/issues{/number}","pulls_url":"https://api.github.com/repos/jnh5y/geomesa/pulls{/number}","milestones_url":"https://api.github.com/repos/jnh5y/geomesa/milestones{/number}","notifications_url":"https://api.github.com/repos/jnh5y/geomesa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jnh5y/geomesa/labels{/name}","releases_url":"https://api.github.com/repos/jnh5y/geomesa/releases{/id}","created_at":"2014-06-23T19:49:49Z","updated_at":"2014-12-15T18:43:55Z","pushed_at":"2015-11-18T19:27:00Z","git_url":"git://github.com/jnh5y/geomesa.git","ssh_url":"git@github.com:jnh5y/geomesa.git","clone_url":"https://github.com/jnh5y/geomesa.git","svn_url":"https://github.com/jnh5y/geomesa","homepage":null,"size":31732,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"accumulo1.5.x/1.x"}},"base":{"label":"locationtech:master","ref":"master","sha":"b655edee477d5fbc5ba4e16e2809dcd814d0525d","user":{"login":"locationtech","id":1991411,"avatar_url":"https://avatars.githubusercontent.com/u/1991411?v=3","gravatar_id":"","url":"https://api.github.com/users/locationtech","html_url":"https://github.com/locationtech","followers_url":"https://api.github.com/users/locationtech/followers","following_url":"https://api.github.com/users/locationtech/following{/other_user}","gists_url":"https://api.github.com/users/locationtech/gists{/gist_id}","starred_url":"https://api.github.com/users/locationtech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/locationtech/subscriptions","organizations_url":"https://api.github.com/users/locationtech/orgs","repos_url":"https://api.github.com/users/locationtech/repos","events_url":"https://api.github.com/users/locationtech/events{/privacy}","received_events_url":"https://api.github.com/users/locationtech/received_events","type":"Organization","site_admin":false},"repo":{"id":13226069,"name":"geomesa","full_name":"locationtech/geomesa","owner":{"login":"locationtech","id":1991411,"avatar_url":"https://avatars.githubusercontent.com/u/1991411?v=3","gravatar_id":"","url":"https://api.github.com/users/locationtech","html_url":"https://github.com/locationtech","followers_url":"https://api.github.com/users/locationtech/followers","following_url":"https://api.github.com/users/locationtech/following{/other_user}","gists_url":"https://api.github.com/users/locationtech/gists{/gist_id}","starred_url":"https://api.github.com/users/locationtech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/locationtech/subscriptions","organizations_url":"https://api.github.com/users/locationtech/orgs","repos_url":"https://api.github.com/users/locationtech/repos","events_url":"https://api.github.com/users/locationtech/events{/privacy}","received_events_url":"https://api.github.com/users/locationtech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/locationtech/geomesa","description":"","fork":false,"url":"https://api.github.com/repos/locationtech/geomesa","forks_url":"https://api.github.com/repos/locationtech/geomesa/forks","keys_url":"https://api.github.com/repos/locationtech/geomesa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/locationtech/geomesa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/locationtech/geomesa/teams","hooks_url":"https://api.github.com/repos/locationtech/geomesa/hooks","issue_events_url":"https://api.github.com/repos/locationtech/geomesa/issues/events{/number}","events_url":"https://api.github.com/repos/locationtech/geomesa/events","assignees_url":"https://api.github.com/repos/locationtech/geomesa/assignees{/user}","branches_url":"https://api.github.com/repos/locationtech/geomesa/branches{/branch}","tags_url":"https://api.github.com/repos/locationtech/geomesa/tags","blobs_url":"https://api.github.com/repos/locationtech/geomesa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/locationtech/geomesa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/locationtech/geomesa/git/refs{/sha}","trees_url":"https://api.github.com/repos/locationtech/geomesa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/locationtech/geomesa/statuses/{sha}","languages_url":"https://api.github.com/repos/locationtech/geomesa/languages","stargazers_url":"https://api.github.com/repos/locationtech/geomesa/stargazers","contributors_url":"https://api.github.com/repos/locationtech/geomesa/contributors","subscribers_url":"https://api.github.com/repos/locationtech/geomesa/subscribers","subscription_url":"https://api.github.com/repos/locationtech/geomesa/subscription","commits_url":"https://api.github.com/repos/locationtech/geomesa/commits{/sha}","git_commits_url":"https://api.github.com/repos/locationtech/geomesa/git/commits{/sha}","comments_url":"https://api.github.com/repos/locationtech/geomesa/comments{/number}","issue_comment_url":"https://api.github.com/repos/locationtech/geomesa/issues/comments{/number}","contents_url":"https://api.github.com/repos/locationtech/geomesa/contents/{+path}","compare_url":"https://api.github.com/repos/locationtech/geomesa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/locationtech/geomesa/merges","archive_url":"https://api.github.com/repos/locationtech/geomesa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/locationtech/geomesa/downloads","issues_url":"https://api.github.com/repos/locationtech/geomesa/issues{/number}","pulls_url":"https://api.github.com/repos/locationtech/geomesa/pulls{/number}","milestones_url":"https://api.github.com/repos/locationtech/geomesa/milestones{/number}","notifications_url":"https://api.github.com/repos/locationtech/geomesa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/locationtech/geomesa/labels{/name}","releases_url":"https://api.github.com/repos/locationtech/geomesa/releases{/id}","created_at":"2013-09-30T20:13:46Z","updated_at":"2015-11-15T14:39:01Z","pushed_at":"2015-11-18T21:25:32Z","git_url":"git://github.com/locationtech/geomesa.git","ssh_url":"git@github.com:locationtech/geomesa.git","clone_url":"https://github.com/locationtech/geomesa.git","svn_url":"https://github.com/locationtech/geomesa","homepage":null,"size":13819,"stargazers_count":108,"watchers_count":108,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":67,"mirror_url":null,"open_issues_count":9,"forks":67,"open_issues":9,"watchers":108,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/locationtech/geomesa/pulls/720"},"html":{"href":"https://github.com/locationtech/geomesa/pull/720"},"issue":{"href":"https://api.github.com/repos/locationtech/geomesa/issues/720"},"comments":{"href":"https://api.github.com/repos/locationtech/geomesa/issues/720/comments"},"review_comments":{"href":"https://api.github.com/repos/locationtech/geomesa/pulls/720/comments"},"review_comment":{"href":"https://api.github.com/repos/locationtech/geomesa/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/locationtech/geomesa/pulls/720/commits"},"statuses":{"href":"https://api.github.com/repos/locationtech/geomesa/statuses/3d37eeabe4bfed43bb358b70aa3b49df17998eee"}}}}