Interface IQueryWithIndex<T>
-
- All Superinterfaces:
IQuery<T>
- All Known Implementing Classes:
ArtifactDescriptorQuery
,ArtifactKeyQuery
,ExpressionMatchQuery
,ExpressionQuery
,IUProfilePropertyQuery
,OSGiBundleQuery
,UserVisibleRootQuery
public interface IQueryWithIndex<T> extends IQuery<T>
An extension of theIQuery
that allows use of indexes.- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IQueryResult<T>
perform(IIndexProvider<T> indexProvider)
Evaluates the query using theindexProvider
.-
Methods inherited from interface org.eclipse.equinox.p2.query.IQuery
getExpression, perform
-
-
-
-
Method Detail
-
perform
IQueryResult<T> perform(IIndexProvider<T> indexProvider)
Evaluates the query using theindexProvider
. The query is first analyzed for index candidates (typically expressions like id == <some value>) and if possible, indexes returned byIIndexProvider.getIndex(String)
will be used in place of the iterator returned byIIndexProvider.everything()
.- Parameters:
indexProvider
- The provider of the material to evaluate the query on- Returns:
- The results of the query.
-
-