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

Method scan

src/core/SaltScanner.java:269–276  ·  view source on GitHub ↗

Starts all of the scanners asynchronously and returns the data fetched once all of the scanners have completed. Note that the result may be an exception if one or more of the scanners encountered an exception. The first error will be returned, others will be logged. @return A deferred to wait on for

()

Source from the content-addressed store, hash-verified

267 * @return A deferred to wait on for results.
268 */
269 public Deferred<SortedMap<byte[], Span>> scan() {
270 start_time = System.currentTimeMillis();
271 int i = 0;
272 for (final Scanner scanner: scanners) {
273 new ScannerCB(scanner, i++).scan();
274 }
275 return results;
276 }
277
278 public Deferred<SortedMap<byte[], HistogramSpan>> scanHistogram() {
279 start_time = DateTime.currentTimeMillis();

Callers 15

scanNoDataMethod · 0.95
scanMethod · 0.95
scanWithFilterMethod · 0.95
scanWithTwoFilterMethod · 0.95
scanWithFilterNoMatchMethod · 0.95
scanBadRowKeyMethod · 0.95

Calls 1

currentTimeMillisMethod · 0.45

Tested by 15

scanNoDataMethod · 0.76
scanMethod · 0.76
scanWithFilterMethod · 0.76
scanWithTwoFilterMethod · 0.76
scanWithFilterNoMatchMethod · 0.76
scanBadRowKeyMethod · 0.76