public class MetricsQueryExecutor<Q extends ElementQuery,R extends JanusGraphElement,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)
QueryExecutor
getNew
in interface QueryExecutor<Q extends ElementQuery,R extends JanusGraphElement,B extends BackendQuery>
public boolean hasDeletions(Q query)
QueryExecutor
QueryExecutor.isDeleted(ElementQuery, org.janusgraph.core.JanusGraphElement)
.hasDeletions
in interface QueryExecutor<Q extends ElementQuery,R extends JanusGraphElement,B extends BackendQuery>
public boolean isDeleted(Q query, R result)
QueryExecutor
isDeleted
in interface QueryExecutor<Q extends ElementQuery,R extends JanusGraphElement,B extends BackendQuery>
public Iterator<R> execute(Q query, B subquery, Object executionInfo, QueryProfiler profiler)
QueryExecutor
QueryProcessor
using the other methods
of this interface.execute
in interface QueryExecutor<Q extends ElementQuery,R extends JanusGraphElement,B extends BackendQuery>
Copyright © 2012–2023. All rights reserved.