Class Ordering
- java.lang.Object
-
- org.apache.jackrabbit.core.query.lucene.Ordering
-
public class Ordering extends Object
Ordering
implements a single ordering specification.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Ordering
fromQOM(OrderingImpl ordering, SharedFieldComparatorSource scs, NamespaceMappings nsMappings)
Creates an ordering from a JCR QOM ordering.Name
getSelectorName()
SortField
getSortField()
-
-
-
Method Detail
-
getSelectorName
public Name getSelectorName()
- Returns:
- the selector name where this ordering applies to.
-
getSortField
public SortField getSortField()
- Returns:
- the lucene sort field for this ordering.
-
fromQOM
public static Ordering fromQOM(OrderingImpl ordering, SharedFieldComparatorSource scs, NamespaceMappings nsMappings) throws RepositoryException
Creates an ordering from a JCR QOM ordering.- Parameters:
ordering
- the JCR QOM ordering specification.scs
- the sort comparator source from the search index.nsMappings
- the index internal namespace mappings.- Returns:
- an ordering.
- Throws:
RepositoryException
- if an error occurs while translating the JCR QOM ordering.
-
-