public class SameNodeConstraint extends HierarchyConstraint
SameNodeConstraint implements a same node constraint.| Constructor and Description |
|---|
SameNodeConstraint(org.apache.jackrabbit.spi.commons.query.qom.SameNodeImpl constraint,
org.apache.jackrabbit.spi.commons.query.qom.SelectorImpl selector)
Creates a same node constraint.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(ScoreNode[] row,
org.apache.jackrabbit.spi.Name[] selectorNames,
EvaluationContext context)
Evaluates this constraint for the given row.
|
getBaseNodeIdgetSelector, getSelectorIndexpublic SameNodeConstraint(org.apache.jackrabbit.spi.commons.query.qom.SameNodeImpl constraint,
org.apache.jackrabbit.spi.commons.query.qom.SelectorImpl selector)
constraint - the QOM constraint.selector - the selector for this constraint.public boolean evaluate(ScoreNode[] row, org.apache.jackrabbit.spi.Name[] selectorNames, EvaluationContext context) throws IOException
row - the current row of score nodes.selectorNames - the selector names associated with row.context - the evaluation context.true if the row satisfies the constraint,
false otherwise.IOException - if an error occurs while evaluating the constraint.Copyright © 2004–2018 The Apache Software Foundation. All rights reserved.