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

Method toString

src/core/TSQuery.java:269–316  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

267 }
268
269 public String toString() {
270 final StringBuilder buf = new StringBuilder();
271 buf.append("TSQuery(start_time=")
272 .append(start)
273 .append(", end_time=")
274 .append(end)
275 .append(", subQueries[");
276 if (queries != null && !queries.isEmpty()) {
277 int counter = 0;
278 for (TSSubQuery sub : queries) {
279 if (counter > 0) {
280 buf.append(", ");
281 }
282 buf.append(sub);
283 counter++;
284 }
285 }
286 buf.append("] padding=")
287 .append(padding)
288 .append(", no_annotations=")
289 .append(no_annotations)
290 .append(", with_global_annotations=")
291 .append(with_global_annotations)
292 .append(", show_tsuids=")
293 .append(show_tsuids)
294 .append(", ms_resolution=")
295 .append(ms_resolution)
296 .append(", options=[");
297 if (options != null && !options.isEmpty()) {
298 int counter = 0;
299 for (Map.Entry<String, ArrayList<String>> entry : options.entrySet()) {
300 if (counter > 0) {
301 buf.append(", ");
302 }
303 buf.append(entry.getKey())
304 .append("=[");
305 final ArrayList<String> values = entry.getValue();
306 for (int i = 0; i < values.size(); i++) {
307 if (i > 0) {
308 buf.append(", ");
309 }
310 buf.append(values.get(i));
311 }
312 }
313 }
314 buf.append("])");
315 return buf.toString();
316 }
317
318 /** @return the parsed start time for all queries */
319 public long startTime() {

Callers 1

handleQueryMethod · 0.95

Calls 6

isEmptyMethod · 0.80
sizeMethod · 0.65
appendMethod · 0.45
getKeyMethod · 0.45
getValueMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected