Interface IQueryWithIndex<T>
- All Superinterfaces:
IQuery<T>
- All Known Implementing Classes:
ArtifactDescriptorQuery,ArtifactKeyQuery,ExpressionMatchQuery,ExpressionQuery,IUProfilePropertyQuery,OSGiBundleQuery,UserVisibleRootQuery
An extension of the
IQuery that allows use of indexes.- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptionperform(IIndexProvider<T> indexProvider) Evaluates the query using theindexProvider.Methods inherited from interface org.eclipse.equinox.p2.query.IQuery
getExpression, perform
-
Method Details
-
perform
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.
-