MCPcopy Create free account
hub / github.com/OpenTSDB/opentsdb / call

Method call

src/meta/TSUIDQuery.java:292–310  ·  view source on GitHub ↗

Loops through each row of the scanner results and parses out data points and optional meta data @return null if no rows were found, otherwise the TreeMap with spans

(final ArrayList<ArrayList<KeyValue>> rows)

Source from the content-addressed store, hash-verified

290 * @return null if no rows were found, otherwise the TreeMap with spans
291 */
292 @Override
293 public Object call(final ArrayList<ArrayList<KeyValue>> rows)
294 throws Exception {
295 try {
296 if (rows == null) {
297 results.callback(tsuids);
298 return null;
299 }
300
301 for (final ArrayList<KeyValue> row : rows) {
302 final byte[] tsuid = row.get(0).key();
303 tsuids.put(tsuid, row.get(0).timestamp());
304 }
305 return scan();
306 } catch (Exception e) {
307 results.callback(e);
308 return null;
309 }
310 }
311 }
312
313 new ScannerCB().scan();

Callers

nothing calls this directly

Calls 8

scanMethod · 0.95
parseFromColumnMethod · 0.95
putMethod · 0.80
keyMethod · 0.65
timestampMethod · 0.65
getMethod · 0.45
groupMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected