Search in sources :

Example 1 with QueryExpressionMapper

use of com.google.devtools.build.lib.query2.engine.QueryExpressionMapper in project bazel by bazelbuild.

the class SkyQueryEnvironment method transformParsedQuery.

@Override
public final QueryExpression transformParsedQuery(QueryExpression queryExpression) {
    QueryExpressionMapper mapper = getQueryExpressionMapper();
    QueryExpression transformedQueryExpression = queryExpression.getMapped(mapper);
    LOG.info(String.format("transformed query [%s] to [%s]", Ascii.truncate(queryExpression.toString(), MAX_QUERY_EXPRESSION_LOG_CHARS, "[truncated]"), Ascii.truncate(transformedQueryExpression.toString(), MAX_QUERY_EXPRESSION_LOG_CHARS, "[truncated]")));
    return transformedQueryExpression;
}
Also used : QueryExpressionMapper(com.google.devtools.build.lib.query2.engine.QueryExpressionMapper) QueryExpression(com.google.devtools.build.lib.query2.engine.QueryExpression)

Aggregations

QueryExpression (com.google.devtools.build.lib.query2.engine.QueryExpression)1 QueryExpressionMapper (com.google.devtools.build.lib.query2.engine.QueryExpressionMapper)1