public class MetricsQueryExecutor<Q extends ElementQuery,R extends TitanElement,B extends BackendQuery> extends Object implements QueryExecutor<Q,R,B>
QueryExecutor to gather metrics on the query execution and forward them to METRICS.| Constructor and Description |
|---|
MetricsQueryExecutor(String prefix,
String name,
QueryExecutor<Q,R,B> qe) |
| Modifier and Type | Method and Description |
|---|---|
Iterator<R> |
execute(Q query,
B subquery,
Object executionInfo,
QueryProfiler profiler)
Executes the given sub-query against a data store and returns an iterator over the results.
|
Iterator<R> |
getNew(Q query)
Returns all newly created elements in a transactional context that match the given query.
|
boolean |
hasDeletions(Q query)
Whether the transactional context contains any deletions that could potentially affect the result set of the given query.
|
boolean |
isDeleted(Q query,
R result)
Whether the given result entry has been deleted in the transactional context and should hence be removed from the result set.
|
public Iterator<R> getNew(Q query)
QueryExecutorgetNew in interface QueryExecutor<Q extends ElementQuery,R extends TitanElement,B extends BackendQuery>public boolean hasDeletions(Q query)
QueryExecutorQueryExecutor.isDeleted(ElementQuery, com.thinkaurelius.titan.core.TitanElement).hasDeletions in interface QueryExecutor<Q extends ElementQuery,R extends TitanElement,B extends BackendQuery>public boolean isDeleted(Q query, R result)
QueryExecutorisDeleted in interface QueryExecutor<Q extends ElementQuery,R extends TitanElement,B extends BackendQuery>public Iterator<R> execute(Q query, B subquery, Object executionInfo, QueryProfiler profiler)
QueryExecutorQueryProcessor using the other methods
of this interface.execute in interface QueryExecutor<Q extends ElementQuery,R extends TitanElement,B extends BackendQuery>Copyright © 2012–2015. All rights reserved.