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

Method fetchEmptyTable

test/core/TestMultiGetQuery.java:726–738  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

724 }
725
726 @Test
727 public void fetchEmptyTable() throws Exception {
728 setDataPointStorage();
729 spans = new TreeMap<byte[], Span>(new TsdbQuery.SpanCmp(TSDB.metrics_width()));
730 MultiGetQuery mgq = new MultiGetQuery(tsdb, query, METRIC_BYTES, q_tags,
731 start_ts, end_ts, tsdb.dataTable(), spans, null, 0, null, query_stats,
732 0, max_bytes, false, multiget_no_meta);
733
734 final SortedMap<byte[], Span> results = mgq.fetch().join();
735 assertSame(spans, results);
736 assertTrue(spans.isEmpty());
737 verify(client, times(1)).get(anyList());
738 }
739
740 @Test
741 public void fetchSmallBatch() throws Exception {

Callers

nothing calls this directly

Calls 6

metrics_widthMethod · 0.95
fetchMethod · 0.95
setDataPointStorageMethod · 0.80
dataTableMethod · 0.80
isEmptyMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected