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

Method getTSMetasSingleSetQuery

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

Source from the content-addressed store, hash-verified

231 }
232
233 @Test
234 public void getTSMetasSingleSetQuery() throws Exception {
235 query = new TSUIDQuery(tsdb);
236 query.setQuery(METRIC_STRING, tags);
237 final List<TSMeta> tsmetas = query.getTSMetas().joinUninterruptibly();
238 assertEquals(1, tsmetas.size());
239 assertEquals(METRIC_STRING, tsmetas.get(0).getMetric().getName());
240 assertEquals(TAGK_STRING, tsmetas.get(0).getTags().get(0).getName());
241 assertEquals(TAGV_STRING, tsmetas.get(0).getTags().get(1).getName());
242 }
243
244 @Test
245 public void getTSMetasMultipleResults() throws Exception {

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected