public abstract class IndexPlanners extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CHILDREN_BY_PATH_INDEX_NAME |
static String |
DESCENDANTS_BY_PATH_INDEX_NAME |
static String |
ID_PARAMETER |
static String |
NODE_BY_ID_INDEX_NAME |
static String |
NODE_BY_PATH_INDEX_NAME |
static String |
PATH_PARAMETER |
Constructor and Description |
---|
IndexPlanners() |
Modifier and Type | Method and Description |
---|---|
abstract void |
applyIndexes(QueryContext context,
IndexCostCalculator calculator)
Examine the supplied constraints applied to the given selector in a query, and record in the supplied
IndexCostCalculator any and all indexes in this provider that can be used in this query. |
static IndexPlanners |
implicit()
Get the IndexPlanners instance that looks only for the implicit (built-in) indexes.
|
protected static String |
stringValue(StaticOperand operand,
QueryContext context) |
static IndexPlanners |
withProviders(Map<String,IndexPlanner> plannersByProviderName)
Get an IndexPlanners instance that looks for the implicit (built-in) indexes and that calls the appropriate
IndexPlanner instances given the available indexes for this selector. |
public static final String NODE_BY_PATH_INDEX_NAME
public static final String NODE_BY_ID_INDEX_NAME
public static final String CHILDREN_BY_PATH_INDEX_NAME
public static final String DESCENDANTS_BY_PATH_INDEX_NAME
public static final String PATH_PARAMETER
public static final String ID_PARAMETER
public abstract void applyIndexes(QueryContext context, IndexCostCalculator calculator)
IndexCostCalculator
any 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 nullcalculator
- 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 nullpublic static IndexPlanners implicit()
public static IndexPlanners withProviders(Map<String,IndexPlanner> plannersByProviderName)
IndexPlanner
instances given the available indexes for this selector.plannersByProviderName
- the map of query index planners keyed by the provider's nameprotected static String stringValue(StaticOperand operand, QueryContext context)
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.