Search in sources :

Example 1 with QueryProfiler

use of com.thinkaurelius.titan.graphdb.query.profile.QueryProfiler in project titan by thinkaurelius.

the class GraphCentricQueryBuilder method constructQuery.

public GraphCentricQuery constructQuery(final ElementCategory resultType) {
    QueryProfiler optProfiler = profiler.addNested(QueryProfiler.OPTIMIZATION);
    optProfiler.startTimer();
    GraphCentricQuery query = constructQueryWithoutProfile(resultType);
    optProfiler.stopTimer();
    query.observeWith(profiler);
    return query;
}
Also used : QueryProfiler(com.thinkaurelius.titan.graphdb.query.profile.QueryProfiler)

Example 2 with QueryProfiler

use of com.thinkaurelius.titan.graphdb.query.profile.QueryProfiler in project titan by thinkaurelius.

the class BasicVertexCentricQueryBuilder method constructQuery.

protected BaseVertexCentricQuery constructQuery(RelationCategory returnType) {
    QueryProfiler optProfiler = profiler.addNested(QueryProfiler.OPTIMIZATION);
    optProfiler.startTimer();
    BaseVertexCentricQuery query = constructQueryWithoutProfile(returnType);
    optProfiler.stopTimer();
    query.observeWith(profiler);
    return query;
}
Also used : QueryProfiler(com.thinkaurelius.titan.graphdb.query.profile.QueryProfiler)

Aggregations

QueryProfiler (com.thinkaurelius.titan.graphdb.query.profile.QueryProfiler)2