org.apache.lucene.chunk
Class SparseStringComparator

Object
  extended by SparseStringComparator
All Implemented Interfaces:
Serializable, SortComparatorSource

public class SparseStringComparator
extends Object
implements SortComparatorSource

See Also:
Serialized Form

Nested Class Summary
(package private)  class SparseStringComparator.Entry
          A single entry in the sorting table
(package private) static class SparseStringComparator.EntryComparator
          Compare two entries for sorting purposes
private  class SparseStringComparator.SparseComp
           
 
Field Summary
private static WeakHashMap cache
           
private static SparseStringComparator.EntryComparator entryComparator
           
 
Constructor Summary
SparseStringComparator()
           
 
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

entryComparator

private static final SparseStringComparator.EntryComparator entryComparator
Constructor Detail

SparseStringComparator

public SparseStringComparator()
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