org.apache.jackrabbit.core.query.lucene
Class Ordering

java.lang.Object
  extended by org.apache.jackrabbit.core.query.lucene.Ordering

public class Ordering
extends Object

Ordering implements a single ordering specification.


Method Summary
static Ordering fromQOM(OrderingImpl ordering, org.apache.lucene.search.SortComparatorSource scs, NamespaceMappings nsMappings)
          Creates an ordering from a JCR QOM ordering.
 Name getSelectorName()
           
 org.apache.lucene.search.SortField getSortField()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSelectorName

public 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(OrderingImpl ordering,
                               org.apache.lucene.search.SortComparatorSource 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.


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.