MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / downsample

Method downsample

src/core/Query.java:204–204  ·  view source on GitHub ↗

Downsamples the results by specifying a fixed interval between points. Technically, downsampling means reducing the sampling interval. Here the idea is similar. Instead of returning every single data point that matched the query, we want one data point per fixed time interval. The way we get

(long interval, Aggregator downsampler)

Source from the content-addressed store, hash-verified

202 * within an interval.
203 */
204 void downsample(long interval, Aggregator downsampler);
205
206 /**
207 * Sets an optional downsampling function on this query

Implementers 1

AbstractQuerysrc/core/AbstractQuery.java

Calls

no outgoing calls