Class Ordering


  • public class Ordering
    extends Object
    Ordering implements a single ordering specification.
    • Method Detail

      • getSelectorName

        public org.apache.jackrabbit.spi.Name getSelectorName()
        Returns:
        the selector name where this ordering applies to.
      • getSortField

        public org.apache.lucene.search.SortField getSortField()
        Returns:
        the lucene sort field for this ordering.
      • fromQOM

        public static Ordering fromQOM​(org.apache.jackrabbit.spi.commons.query.qom.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.