MCPcopy
hub / github.com/OpenTSDB/opentsdb / add

Method add

src/graph/Plot.java:174–184  ·  view source on GitHub ↗

Adds some data points to this plot. @param datapoints The data points to plot. @param options The options to apply to this specific series.

(final DataPoints datapoints,
                  final String options)

Source from the content-addressed store, hash-verified

172 * @param options The options to apply to this specific series.
173 */
174 public void add(final DataPoints datapoints,
175 final String options) {
176 // Technically, we could check the number of data points in the
177 // datapoints argument in order to do something when there are none, but
178 // this is potentially expensive with a SpanGroup since it requires
179 // iterating through the entire SpanGroup. We'll check this later
180 // when we're trying to use the data, in order to avoid multiple passes
181 // through the entire data.
182 this.datapoints.add(datapoints);
183 this.options.add(options);
184 }
185
186 /**
187 * Returns a view on the datapoints in this plot.

Callers 15

doQueryMethod · 0.95
doGraphMethod · 0.95
TestFsckClass · 0.45
TestFsckWRollupsClass · 0.45
answerMethod · 0.45
serdesListMethod · 0.45
sortTestMethod · 0.45
sortTestSetsMethod · 0.45
sortTestWithNullKeyMethod · 0.45
sortTestonValueMethod · 0.45

Calls

no outgoing calls

Tested by 15

answerMethod · 0.36
serdesListMethod · 0.36
sortTestMethod · 0.36
sortTestSetsMethod · 0.36
sortTestWithNullKeyMethod · 0.36
sortTestonValueMethod · 0.36
oneLevelMethod · 0.36
nestedMethod · 0.36