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

Method getTSMetasSingle

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

Source from the content-addressed store, hash-verified

221 }
222
223 @Test
224 public void getTSMetasSingle() throws Exception {
225 query = new TSUIDQuery(tsdb, METRIC_STRING, tags);
226 final List<TSMeta> tsmetas = query.getTSMetas().joinUninterruptibly();
227 assertEquals(1, tsmetas.size());
228 assertEquals(METRIC_STRING, tsmetas.get(0).getMetric().getName());
229 assertEquals(TAGK_STRING, tsmetas.get(0).getTags().get(0).getName());
230 assertEquals(TAGV_STRING, tsmetas.get(0).getTags().get(1).getName());
231 }
232
233 @Test
234 public void getTSMetasSingleSetQuery() throws Exception {

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected