org.apache.lucene.search
Class FieldSpanSource.ScoreComparator

Object
  extended by FieldSpanSource.ScoreComparator
All Implemented Interfaces:
Comparator
Enclosing class:
FieldSpanSource

private static class FieldSpanSource.ScoreComparator
extends Object
implements Comparator

Used to sort spans by descending score, then by position


Constructor Summary
private FieldSpanSource.ScoreComparator()
           
 
Method Summary
 int compare(Object o1, Object o2)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface Comparator
equals
 

Constructor Detail

FieldSpanSource.ScoreComparator

private FieldSpanSource.ScoreComparator()
Method Detail

compare

public int compare(Object o1,
                   Object o2)
Specified by:
compare in interface Comparator