public class IndexUsage extends Object
IndexProvider
implementation during index planning. Specifically, see
IndexProvider.planUseOfIndex(QueryContext, IndexCostCalculator, String, ManagedIndex, IndexDefinition)
.IndexProvider
Constructor and Description |
---|
IndexUsage(QueryContext context,
IndexCostCalculator calculator,
IndexDefinition defn) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
applies(ArithmeticOperand operand) |
protected boolean |
applies(Cast operand) |
protected boolean |
applies(ChildCount operand) |
protected boolean |
applies(DynamicOperand operand) |
protected boolean |
applies(FullTextSearch constraint) |
protected boolean |
applies(Length operand) |
protected boolean |
applies(LowerCase operand) |
protected boolean |
applies(NodeDepth operand) |
protected boolean |
applies(NodeId operand) |
protected boolean |
applies(NodeLocalName operand) |
protected boolean |
applies(NodeName operand) |
protected boolean |
applies(NodePath operand) |
protected boolean |
applies(Operator operator) |
protected boolean |
applies(PropertyValue operand) |
protected boolean |
applies(ReferenceValue operand) |
protected boolean |
applies(UpperCase operand) |
protected boolean |
indexAppliesTo(And and) |
protected boolean |
indexAppliesTo(Between constraint) |
protected boolean |
indexAppliesTo(ChildNodeJoinCondition condition) |
protected boolean |
indexAppliesTo(Comparison constraint) |
boolean |
indexAppliesTo(Constraint constraint)
Determine if this index can be used to evaluate the given constraint.
|
protected boolean |
indexAppliesTo(DescendantNodeJoinCondition condition) |
protected boolean |
indexAppliesTo(EquiJoinCondition condition) |
boolean |
indexAppliesTo(JoinCondition condition)
Determine if this index can be used to evaluate the given join condition.
|
protected boolean |
indexAppliesTo(Not not) |
protected boolean |
indexAppliesTo(Or or) |
protected boolean |
indexAppliesTo(PropertyExistence constraint) |
protected boolean |
indexAppliesTo(Relike constraint) |
protected boolean |
indexAppliesTo(SameNodeJoinCondition condition) |
protected boolean |
indexAppliesTo(SetCriteria constraint) |
protected boolean |
isReferenceIndex() |
protected boolean |
isReferenceIndex(String refPropName) |
protected boolean |
matchesSelectorName(String selectorName) |
protected Name |
name(String name) |
protected NodeTypes |
nodeTypes() |
public IndexUsage(QueryContext context, IndexCostCalculator calculator, IndexDefinition defn)
public boolean indexAppliesTo(JoinCondition condition)
condition
- the condition; may not be nullprotected boolean indexAppliesTo(ChildNodeJoinCondition condition)
protected boolean indexAppliesTo(DescendantNodeJoinCondition condition)
protected boolean indexAppliesTo(EquiJoinCondition condition)
protected boolean indexAppliesTo(SameNodeJoinCondition condition)
public boolean indexAppliesTo(Constraint constraint)
constraint
- the constraint; may not be nullprotected boolean indexAppliesTo(Comparison constraint)
protected boolean indexAppliesTo(And and)
protected boolean indexAppliesTo(Or or)
protected boolean indexAppliesTo(Not not)
protected boolean indexAppliesTo(Between constraint)
protected boolean indexAppliesTo(SetCriteria constraint)
protected boolean indexAppliesTo(Relike constraint)
protected boolean indexAppliesTo(PropertyExistence constraint)
protected boolean applies(Operator operator)
protected boolean applies(DynamicOperand operand)
protected boolean applies(PropertyValue operand)
protected boolean applies(UpperCase operand)
protected boolean applies(Cast operand)
protected boolean applies(LowerCase operand)
protected boolean applies(Length operand)
protected boolean applies(ArithmeticOperand operand)
protected boolean applies(NodeName operand)
protected boolean applies(NodeLocalName operand)
protected boolean applies(NodePath operand)
protected boolean applies(NodeId operand)
protected boolean applies(NodeDepth operand)
protected boolean applies(ChildCount operand)
protected boolean applies(ReferenceValue operand)
protected boolean applies(FullTextSearch constraint)
protected final boolean matchesSelectorName(String selectorName)
protected final NodeTypes nodeTypes()
protected final boolean isReferenceIndex(String refPropName)
protected final boolean isReferenceIndex()
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.