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

Method generator

test/core/SeekableViewsForTest.java:43–49  ·  view source on GitHub ↗

Creates a SeekableView that generates a sequence of data points where the starting value is 1 and it is incremented by 1 each iteration. @param start_time Starting timestamp @param sample_period Average sample period of data points @param num_data_points Total number of data points to genera

(final long start_time,
                                       final long sample_period,
                                       final int num_data_points,
                                       final boolean is_integer)

Source from the content-addressed store, hash-verified

41 * @return A {@link SeekableView} object
42 */
43 public static SeekableView generator(final long start_time,
44 final long sample_period,
45 final int num_data_points,
46 final boolean is_integer) {
47 return generator(start_time, sample_period, num_data_points,
48 is_integer, 0, 1);
49 }
50
51 /**
52 * Creates a {@link SeekableView} that generates a sequence of data points.

Callers 15

answerMethod · 0.95
testSeekMethod · 0.95
createSeekableViewsMethod · 0.95
beforeMethod · 0.95
evaluateGroupByLongMethod · 0.95
evaluateGroupByDoubleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected