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

Method create

src/core/AggregationIterator.java:218–229  ·  view source on GitHub ↗

Creates a new iterator for a SpanGroup. @param spans Spans in a group. @param start_time Any data point strictly before this timestamp will be ignored. @param end_time Any data point strictly after this timestamp will be ignored. @param aggregator The aggregation function to use. @param meth

(final List<Span> spans,
                                           final long start_time,
                                           final long end_time,
                                           final Aggregator aggregator,
                                           final Interpolation method,
                                           final Aggregator downsampler,
                                           final long sample_interval_ms,
                                           final boolean rate,
                                           final RateOptions rate_options)

Source from the content-addressed store, hash-verified

216 * @return An {@link AggregationIterator} object.
217 */
218 public static AggregationIterator create(final List<Span> spans,
219 final long start_time,
220 final long end_time,
221 final Aggregator aggregator,
222 final Interpolation method,
223 final Aggregator downsampler,
224 final long sample_interval_ms,
225 final boolean rate,
226 final RateOptions rate_options) {
227 return create(spans, start_time, end_time, aggregator, method, downsampler,
228 sample_interval_ms, rate, rate_options, null);
229 }
230
231 /**
232 * Creates a new iterator for a {@link SpanGroup}.

Callers 2

iteratorMethod · 0.95

Calls 4

sizeMethod · 0.65
spanIteratorMethod · 0.45
getMethod · 0.45
downsamplerMethod · 0.45

Tested by

no test coverage detected