Class LengthSortComparator
- java.lang.Object
-
- org.apache.lucene.search.FieldComparatorSource
-
- org.apache.jackrabbit.core.query.lucene.LengthSortComparator
-
- All Implemented Interfaces:
Serializable
public class LengthSortComparator extends FieldComparatorSource
LengthSortComparator
implements aFieldComparator
which sorts on the length of property values.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LengthSortComparator(NamespaceMappings nsMappings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldComparator
newComparator(String fieldname, int numHits, int sortPos, boolean reversed)
-
-
-
Constructor Detail
-
LengthSortComparator
public LengthSortComparator(NamespaceMappings nsMappings)
-
-
Method Detail
-
newComparator
public FieldComparator newComparator(String fieldname, int numHits, int sortPos, boolean reversed) throws IOException
- Specified by:
newComparator
in classFieldComparatorSource
- Throws:
IOException
-
-