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;
}
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;
}
Aggregations