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

java.lang.Object
  extended by org.apache.jackrabbit.core.query.lucene.LowerCaseSortComparator
All Implemented Interfaces:
Serializable, org.apache.lucene.search.SortComparatorSource

public class LowerCaseSortComparator
extends Object
implements org.apache.lucene.search.SortComparatorSource

LowerCaseSortComparator implements a sort comparator that compares the lower-cased string values of a base sort comparator.

See Also:
Serialized Form

Constructor Summary
LowerCaseSortComparator(org.apache.lucene.search.SortComparatorSource base)
          Creates a new lower case sort comparator.
 
Method Summary
 org.apache.lucene.search.ScoreDocComparator newComparator(org.apache.lucene.index.IndexReader reader, String fieldname)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LowerCaseSortComparator

public LowerCaseSortComparator(org.apache.lucene.search.SortComparatorSource base)
Creates a new lower case sort comparator.

Parameters:
base - the base sort comparator source.
Method Detail

newComparator

public org.apache.lucene.search.ScoreDocComparator newComparator(org.apache.lucene.index.IndexReader reader,
                                                                 String fieldname)
                                                          throws IOException

Specified by:
newComparator in interface org.apache.lucene.search.SortComparatorSource
Throws:
IOException


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