| Determines the relative order of two node-tuples by evaluating
Ordering.getOperand operand for each.
For a first node-tuple, nt1 , for which
Ordering.getOperand operand evaluates to v1 , and a second node-tuple, nt2 , for
which
Ordering.getOperand operand evaluates to v2 :
- If
Ordering.getOrder order is
Ascending , then:
- if either
v1 is null, v2 is null, or both
v1 and v2 are null, the relative order of
nt1 and nt2 is implementation determined,
otherwise
- if
v1 is a different property type than v2 ,
the relative order of nt1 and nt2 is
implementation determined, otherwise
- if
v1 is ordered before v2 , then
nt1 precedes nt2 , otherwise
- if
v1 is ordered after v2 , then
nt2 precedes nt1 , otherwise
- the relative order of
nt1 and nt2 is
implementation determined and may be arbitrary.
- Otherwise, if
Ordering.getOrder order is
Descending , then:
- if either
v1 is null, v2 is null, or both
v1 and v2 are null, the relative order of
nt1 and nt2 is implementation determined,
otherwise
- if
v1 is a different property type than v2 ,
the relative order of nt1 and nt2 is
implementation determined, otherwise
- if
v1 is ordered before v2 , then
nt2 precedes nt1 , otherwise
- if
v1 is ordered after v2 , then
nt1 precedes nt2 , otherwise
- the relative order of
nt1 and nt2 is
implementation determined and may be arbitrary.
The query is invalid if
Ordering.getOperand operand does not evaluate to a
scalar value.
since: JCR 2.0 |