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

Method getTSMetasMultipleResults

test/meta/TestTSUIDQuery.java:244–256  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

242 }
243
244 @Test
245 public void getTSMetasMultipleResults() throws Exception {
246 tags.clear();
247 query = new TSUIDQuery(tsdb, METRIC_STRING, tags);
248 final List<TSMeta> tsmetas = query.getTSMetas().joinUninterruptibly();
249 assertEquals(2, tsmetas.size());
250 assertEquals(METRIC_STRING, tsmetas.get(0).getMetric().getName());
251 assertEquals(TAGK_STRING, tsmetas.get(0).getTags().get(0).getName());
252 assertEquals(TAGV_STRING, tsmetas.get(0).getTags().get(1).getName());
253 assertEquals(METRIC_STRING, tsmetas.get(1).getMetric().getName());
254 assertEquals(TAGK_STRING, tsmetas.get(1).getTags().get(0).getName());
255 assertEquals(TAGV_B_STRING, tsmetas.get(1).getTags().get(1).getName());
256 }
257
258 @Test
259 public void getTSMetasMultipleTags() throws Exception {

Callers

nothing calls this directly

Calls 7

clearMethod · 0.80
getTSMetasMethod · 0.80
sizeMethod · 0.65
getNameMethod · 0.65
getTagsMethod · 0.65
getMetricMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected