Class Ordering
- java.lang.Object
-
- org.apache.jackrabbit.core.query.lucene.Ordering
-
public class Ordering extends Object
Orderingimplements a single ordering specification.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OrderingfromQOM(OrderingImpl ordering, SharedFieldComparatorSource scs, NamespaceMappings nsMappings)Creates an ordering from a JCR QOM ordering.NamegetSelectorName()SortFieldgetSortField()
-
-
-
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.
-
-