org.apache.lucene.search
Class FlippableStringComparator

Object
  extended by FlippableStringComparator
All Implemented Interfaces:
Serializable, SortComparatorSource

public class FlippableStringComparator
extends Object
implements SortComparatorSource

See Also:
Serialized Form

Nested Class Summary
private  class FlippableStringComparator.FlippableComp
           
 
Field Summary
private static WeakHashMap cache
           
 
Constructor Summary
FlippableStringComparator()
           
 
Method Summary
 ScoreDocComparator newComparator(IndexReader reader, String fieldName)
          Make a comparator for the given field using the given reader
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cache

private static final WeakHashMap cache
Constructor Detail

FlippableStringComparator

public FlippableStringComparator()
Method Detail

newComparator

public ScoreDocComparator newComparator(IndexReader reader,
                                        String fieldName)
                                 throws IOException
Make a comparator for the given field using the given reader

Specified by:
newComparator in interface SortComparatorSource
Throws:
IOException