protected static class IndexQueryEngine.ProviderIndexPlanner extends IndexPlanner
IndexPlanner implementation that passes through only those indexes that are owned by the named provider.| Modifier and Type | Field and Description |
|---|---|
protected String |
providerName |
| Modifier | Constructor and Description |
|---|---|
protected |
IndexQueryEngine.ProviderIndexPlanner(String providerName,
IndexPlanner providerPlanner) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyIndexes(QueryContext context,
SelectorName selector,
List<Constraint> andedConstraints,
Iterable<IndexDefinition> indexesOnSelector,
IndexCollector indexes)
Examine the supplied constraints applied to the given selector in a query, and record in the supplied
IndexCollector any and all indexes in this provider that can be used in this query. |
String |
toString() |
bothprotected final String providerName
protected IndexQueryEngine.ProviderIndexPlanner(String providerName, IndexPlanner providerPlanner)
public void applyIndexes(QueryContext context, SelectorName selector, List<Constraint> andedConstraints, Iterable<IndexDefinition> indexesOnSelector, IndexCollector indexes)
IndexPlannerIndexCollector any and all indexes in this provider that can be used in this query.applyIndexes in class IndexPlannercontext - the context in which the query is being executed, provided by ModeShape; never nullselector - the name of the selector against which all of the andedConstraints are to be applied; never nullandedConstraints - the immutable list of Constraint instances that are all AND-ed and applied against the
selector; never null but possibly emptyindexesOnSelector - the available index definitions that apply to the node type identified by the named selector; may
be null if there are no indexes definedindexes - the list provided by the caller into which this method should add the index(es), if any, that the query
engine might use to satisfy the relevant portion of the query; never nullCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.