public abstract class IndexPlanner extends Object
|Constructor and Description|
|Modifier and Type||Method and Description|
Examine the supplied constraints applied to the given selector in a query, and record in the supplied
Utility that returns an
public abstract void applyIndexes(QueryContext context, IndexCostCalculator calculator)
IndexCostCalculatorany and all indexes in this provider that can be used in this query.
context- the context in which the query is being executed, provided by ModeShape; never null
calculator- the cost calculator that this method can use to find information about the query and to record information about the index(es), if any, that the query engine might use to satisfy the relevant portion of the query; never null
public static IndexPlanner both(IndexPlanner planner1, IndexPlanner planner2)
IndexPlannerimplementation that delegates to the first planner and then to the second planner. If only one of the supplied planner instances is not null, then this method will simply return the non-null planner.
planner1- the first planner
planner2- the second planner
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.