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

Method call

src/meta/Annotation.java:355–377  ·  view source on GitHub ↗
(
          final ArrayList<ArrayList<KeyValue>> rows)

Source from the content-addressed store, hash-verified

353 }
354
355 @Override
356 public Deferred<List<Annotation>> call (
357 final ArrayList<ArrayList<KeyValue>> rows) throws Exception {
358 if (rows == null || rows.isEmpty()) {
359 return Deferred.fromResult((List<Annotation>)annotations);
360 }
361
362 for (final ArrayList<KeyValue> row : rows) {
363 for (KeyValue column : row) {
364 if ((column.qualifier().length == 3 || column.qualifier().length == 5)
365 && column.qualifier()[0] == PREFIX()) {
366 Annotation note = JSON.parseToObject(column.value(),
367 Annotation.class);
368 if (note.start_time < start_time || note.end_time > end_time) {
369 continue;
370 }
371 annotations.add(note);
372 }
373 }
374 }
375
376 return scan();
377 }
378
379 }
380

Callers

nothing calls this directly

Calls 14

parseToObjectMethod · 0.95
scanMethod · 0.95
baseTimeMethod · 0.95
isEmptyMethod · 0.80
PREFIXMethod · 0.80
timeFromQualifierMethod · 0.80
dataTableMethod · 0.80
keyMethod · 0.65
qualifierMethod · 0.45
valueMethod · 0.45
addMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected