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

Method configureFromQueryGroupByAll

test/core/TestTsdbQuery.java:260–278  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

258 }
259
260 @Test
261 public void configureFromQueryGroupByAll() throws Exception {
262 setDataPointStorage();
263 final TSQuery ts_query = getTSQuery();
264 tags.clear();
265 tags.put(TAGK_STRING, "*");
266 ts_query.getQueries().get(0).setTags(tags);
267 ts_query.validateAndSetQuery();
268 query = new TsdbQuery(tsdb);
269 query.configureFromQuery(ts_query, 0).joinUninterruptibly();
270
271 assertArrayEquals(METRIC_BYTES, ForTesting.getMetric(query));
272 assertEquals(1, ForTesting.getFilters(query).size());
273 assertEquals(1, ForTesting.getGroupBys(query).size());
274 assertArrayEquals(TAGK_BYTES,
275 ForTesting.getGroupBys(query).get(0));
276 assertEquals(1, ForTesting.getRowKeyLiterals(query).size());
277 assertNull(ForTesting.getRowKeyLiterals(query).get(TAGV_BYTES));
278 }
279
280 @Test
281 public void configureFromQueryGroupByPipe() throws Exception {

Callers

nothing calls this directly

Calls 14

getTSQueryMethod · 0.95
getQueriesMethod · 0.95
validateAndSetQueryMethod · 0.95
getMetricMethod · 0.95
getFiltersMethod · 0.95
getGroupBysMethod · 0.95
getRowKeyLiteralsMethod · 0.95
setDataPointStorageMethod · 0.80
clearMethod · 0.80
putMethod · 0.80
configureFromQueryMethod · 0.65
sizeMethod · 0.65

Tested by

no test coverage detected