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

Method handleExpressionQuery

src/tsd/QueryRpc.java:330–339  ·  view source on GitHub ↗

Handles an expression query @param tsdb The TSDB to which we belong @param query The HTTP query to parse/respond @since 2.3

(final TSDB tsdb, final HttpQuery query)

Source from the content-addressed store, hash-verified

328 * @since 2.3
329 */
330 private void handleExpressionQuery(final TSDB tsdb, final HttpQuery query) {
331 final net.opentsdb.query.pojo.Query v2_query =
332 JSON.parseToObject(query.getContent(), net.opentsdb.query.pojo.Query.class);
333 v2_query.validate();
334
335 checkAuthorization(tsdb, query.channel(), v2_query);
336
337 final QueryExecutor executor = new QueryExecutor(tsdb, v2_query);
338 executor.execute(query);
339 }
340
341 /**
342 * Processes a last data point query

Callers 1

executeMethod · 0.95

Calls 6

parseToObjectMethod · 0.95
checkAuthorizationMethod · 0.95
executeMethod · 0.95
channelMethod · 0.80
validateMethod · 0.65
getContentMethod · 0.45

Tested by

no test coverage detected