Package | Description |
---|---|
org.modeshape.jcr.query.plan |
This package defines the
Planner interface, the CanonicalPlanner implementation, and the
PlanNode class that is used to represent a canonical query plan. |
Modifier and Type | Method and Description |
---|---|
static PlanNode.Type |
PlanNode.Type.forSymbol(String symbol)
Attempt to find the Type given a symbol.
|
PlanNode.Type |
PlanNode.getType()
Get the type for this node.
|
static PlanNode.Type |
PlanNode.Type.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PlanNode.Type[] |
PlanNode.Type.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
PlanNode.apply(PlanNode.Traversal order,
PlanNode.Operation operation,
PlanNode.Type type)
Walk the plan tree starting in the specified traversal order, and apply the supplied operation to every plan node with a
type that matches the given type.
|
void |
PlanNode.apply(PlanNode.Traversal order,
PlanNode.Operation operation,
PlanNode.Type firstType,
PlanNode.Type... additionalTypes)
Walk the plan tree starting in the specified traversal order, and apply the supplied operation to every plan node that is
one of the supplied types.
|
void |
PlanNode.apply(PlanNode.Traversal order,
PlanNode.Operation operation,
PlanNode.Type firstType,
PlanNode.Type... additionalTypes)
Walk the plan tree starting in the specified traversal order, and apply the supplied operation to every plan node that is
one of the supplied types.
|
void |
PlanNode.applyToAncestorsUpTo(PlanNode.Type stopType,
PlanNode.Operation operation)
Apply the operation to all ancestor nodes below a node of the given type.
|
List<PlanNode> |
PlanNode.findAllAtOrBelow(PlanNode.Traversal order,
PlanNode.Type typeToFind)
Find all of the nodes of the specified type that are at or below this node.
|
List<PlanNode> |
PlanNode.findAllAtOrBelow(PlanNode.Traversal order,
PlanNode.Type firstTypeToFind,
PlanNode.Type... additionalTypesToFind)
Find all of the nodes with one of the specified types that are at or below this node.
|
List<PlanNode> |
PlanNode.findAllAtOrBelow(PlanNode.Traversal order,
PlanNode.Type firstTypeToFind,
PlanNode.Type... additionalTypesToFind)
Find all of the nodes with one of the specified types that are at or below this node.
|
List<PlanNode> |
PlanNode.findAllAtOrBelow(PlanNode.Type typeToFind)
Find all of the nodes of the specified type that are at or below this node, using pre-order traversal.
|
List<PlanNode> |
PlanNode.findAllAtOrBelow(PlanNode.Type firstTypeToFind,
PlanNode.Type... additionalTypesToFind)
Find all of the nodes with one of the specified types that are at or below this node.
|
List<PlanNode> |
PlanNode.findAllAtOrBelow(PlanNode.Type firstTypeToFind,
PlanNode.Type... additionalTypesToFind)
Find all of the nodes with one of the specified types that are at or below this node.
|
List<PlanNode> |
PlanNode.findAllFirstNodesAtOrBelow(PlanNode.Type typeToFind)
Look at nodes below this node, searching for nodes that have the supplied type.
|
PlanNode |
PlanNode.findAncestor(PlanNode.Type typeToFind)
Starting at the parent of this node, find the lowest (also closest) ancestor that has the specified type.
|
PlanNode |
PlanNode.findAncestor(PlanNode.Type firstTypeToFind,
PlanNode.Type... additionalTypesToFind)
Starting at the parent of this node, find the lowest (also closest) ancestor that has one of the specified types.
|
PlanNode |
PlanNode.findAncestor(PlanNode.Type firstTypeToFind,
PlanNode.Type... additionalTypesToFind)
Starting at the parent of this node, find the lowest (also closest) ancestor that has one of the specified types.
|
PlanNode |
PlanNode.findAtOrBelow(PlanNode.Traversal order,
PlanNode.Type typeToFind)
Find the first node with the specified type that are at or below this node.
|
PlanNode |
PlanNode.findAtOrBelow(PlanNode.Traversal order,
PlanNode.Type firstTypeToFind,
PlanNode.Type... additionalTypesToFind)
Find the first node with one of the specified types that are at or below this node.
|
PlanNode |
PlanNode.findAtOrBelow(PlanNode.Traversal order,
PlanNode.Type firstTypeToFind,
PlanNode.Type... additionalTypesToFind)
Find the first node with one of the specified types that are at or below this node.
|
PlanNode |
PlanNode.findAtOrBelow(PlanNode.Type typeToFind)
Find the first node with the specified type that are at or below this node.
|
PlanNode |
PlanNode.findAtOrBelow(PlanNode.Type firstTypeToFind,
PlanNode.Type... additionalTypesToFind)
Find the first node with one of the specified types that are at or below this node.
|
PlanNode |
PlanNode.findAtOrBelow(PlanNode.Type firstTypeToFind,
PlanNode.Type... additionalTypesToFind)
Find the first node with one of the specified types that are at or below this node.
|
boolean |
PlanNode.hasAncestorOfType(PlanNode.Type type)
Determine whether this node has an ancestor with the supplied type.
|
boolean |
PlanNode.hasAncestorOfType(PlanNode.Type firstType,
PlanNode.Type... additionalTypes)
Determine whether this node has an ancestor with any of the supplied types.
|
boolean |
PlanNode.hasAncestorOfType(PlanNode.Type firstType,
PlanNode.Type... additionalTypes)
Determine whether this node has an ancestor with any of the supplied types.
|
boolean |
PlanNode.is(PlanNode.Type type)
Return true if this node's type does match the supplied type
|
boolean |
PlanNode.isNot(PlanNode.Type type)
Return true if this node's type does not match the supplied type
|
boolean |
PlanNode.isNotOneOf(PlanNode.Type first,
PlanNode.Type... rest)
Return true if this node's type does not match any of the supplied types
|
boolean |
PlanNode.isNotOneOf(PlanNode.Type first,
PlanNode.Type... rest)
Return true if this node's type does not match any of the supplied types
|
boolean |
PlanNode.isOneOf(PlanNode.Type first,
PlanNode.Type... rest)
Return true if this node's type matches one of the supplied types
|
boolean |
PlanNode.isOneOf(PlanNode.Type first,
PlanNode.Type... rest)
Return true if this node's type matches one of the supplied types
|
void |
PlanNode.orderChildren(PlanNode.Type type,
Comparator<PlanNode> comparator) |
void |
PlanNode.setType(PlanNode.Type type)
Set the type for this node.
|
Modifier and Type | Method and Description |
---|---|
void |
PlanNode.apply(PlanNode.Traversal order,
PlanNode.Operation operation,
Set<PlanNode.Type> types)
Walk the plan tree starting in the specified traversal order, and apply the supplied operation to every plan node that is
one of the supplied types.
|
List<PlanNode> |
PlanNode.findAllAtOrBelow(PlanNode.Traversal order,
Set<PlanNode.Type> typesToFind)
Find all of the nodes with one of the specified types that are at or below this node.
|
List<PlanNode> |
PlanNode.findAllAtOrBelow(Set<PlanNode.Type> typesToFind)
Find all of the nodes with one of the specified types that are at or below this node.
|
PlanNode |
PlanNode.findAncestor(Set<PlanNode.Type> typesToFind)
Starting at the parent of this node, find the lowest (also closest) ancestor that has one of the specified types.
|
PlanNode |
PlanNode.findAtOrBelow(PlanNode.Traversal order,
Set<PlanNode.Type> typesToFind)
Find the first node with one of the specified types that are at or below this node.
|
PlanNode |
PlanNode.findAtOrBelow(Set<PlanNode.Type> typesToFind)
Find the first node with one of the specified types that are at or below this node.
|
boolean |
PlanNode.hasAncestorOfType(Set<PlanNode.Type> types)
Determine whether this node has an ancestor with any of the supplied types.
|
boolean |
PlanNode.isNotOneOf(Set<PlanNode.Type> types)
Return true if this node's type does not match any of the supplied types
|
boolean |
PlanNode.isOneOf(Set<PlanNode.Type> types)
Return true if this node's type matches one of the supplied types
|
Constructor and Description |
---|
PlanNode(PlanNode.Type type)
Create a new plan node with the supplied initial type.
|
PlanNode(PlanNode.Type type,
Iterable<SelectorName> selectors)
Create a new plan node with the supplied initial type ad that is a child of the supplied parent.
|
PlanNode(PlanNode.Type type,
PlanNode parent)
Create a new plan node with the supplied initial type ad that is a child of the supplied parent.
|
PlanNode(PlanNode.Type type,
PlanNode parent,
Iterable<SelectorName> selectors)
Create a new plan node with the supplied initial type ad that is a child of the supplied parent.
|
PlanNode(PlanNode.Type type,
PlanNode parent,
SelectorName... selectors)
Create a new plan node with the supplied initial type ad that is a child of the supplied parent.
|
PlanNode(PlanNode.Type type,
SelectorName... selectors)
Create a new plan node with the supplied initial type ad that is a child of the supplied parent.
|
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.