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

java.lang.Object
  extended by org.apache.lucene.search.FieldComparatorSource
      extended by org.apache.jackrabbit.core.query.lucene.LengthSortComparator
All Implemented Interfaces:
Serializable

public class LengthSortComparator
extends org.apache.lucene.search.FieldComparatorSource

LengthSortComparator implements a FieldComparator which sorts on the length of property values.

See Also:
Serialized Form

Constructor Summary
LengthSortComparator(NamespaceMappings nsMappings)
           
 
Method Summary
 org.apache.lucene.search.FieldComparator newComparator(String fieldname, int numHits, int sortPos, boolean reversed)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LengthSortComparator

public LengthSortComparator(NamespaceMappings nsMappings)
Method Detail

newComparator

public org.apache.lucene.search.FieldComparator newComparator(String fieldname,
                                                              int numHits,
                                                              int sortPos,
                                                              boolean reversed)
                                                       throws IOException
Specified by:
newComparator in class org.apache.lucene.search.FieldComparatorSource
Throws:
IOException


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