{"action":"opened","issue":{"url":"https://api.github.com/repos/OpenTSDB/opentsdb/issues/576","labels_url":"https://api.github.com/repos/OpenTSDB/opentsdb/issues/576/labels{/name}","comments_url":"https://api.github.com/repos/OpenTSDB/opentsdb/issues/576/comments","events_url":"https://api.github.com/repos/OpenTSDB/opentsdb/issues/576/events","html_url":"https://github.com/OpenTSDB/opentsdb/issues/576","id":108612565,"number":576,"title":"Cannot create custom Aggregator","user":{"login":"spicoflorin","id":4939817,"avatar_url":"https://avatars.githubusercontent.com/u/4939817?v=3","gravatar_id":"","url":"https://api.github.com/users/spicoflorin","html_url":"https://github.com/spicoflorin","followers_url":"https://api.github.com/users/spicoflorin/followers","following_url":"https://api.github.com/users/spicoflorin/following{/other_user}","gists_url":"https://api.github.com/users/spicoflorin/gists{/gist_id}","starred_url":"https://api.github.com/users/spicoflorin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spicoflorin/subscriptions","organizations_url":"https://api.github.com/users/spicoflorin/orgs","repos_url":"https://api.github.com/users/spicoflorin/repos","events_url":"https://api.github.com/users/spicoflorin/events{/privacy}","received_events_url":"https://api.github.com/users/spicoflorin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-28T08:36:36Z","updated_at":"2015-09-28T08:36:36Z","closed_at":null,"body":"Hello!\r\n   I would like to create my own Aggregator class for example LAST that should take the last value for a metric in a given time range. I have an use case where:\r\n1.  I'm returning a single time series for a given metric, start->end time, tags.\r\n2. For this time series I would like to downsample with a given range and to take the last value from each downsampled interval.\r\nFor example:\r\nTime series, downsample interval 1000, Aggregator LAST:\r\ntimestamps: 0  1000 1001 1002 2000 2001 2002 3000 3001 3002 4000\r\nvalues:         0      1       2       3       5     21     1        2      3        1      15\r\n  the result should be:  1, 5,2,15\r\nCurrently,the Java API doesn't allow me to extend the Aggragtor class due to the fact that the methods runLong and runDoubles are package protected. How can I overpass this?"}}