Class TermsComponent.TermCountComparator
- java.lang.Object
-
- org.apache.solr.handler.component.TermsComponent.TermCountComparator
-
- All Implemented Interfaces:
Comparator<org.apache.solr.client.solrj.response.TermsResponse.Term>
- Enclosing class:
- TermsComponent
public static class TermsComponent.TermCountComparator extends Object implements Comparator<org.apache.solr.client.solrj.response.TermsResponse.Term>
Comparator forTermsResponse.Term
sorting This sorts term by frequency in descending order
-
-
Constructor Summary
Constructors Constructor Description TermCountComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(org.apache.solr.client.solrj.response.TermsResponse.Term o1, org.apache.solr.client.solrj.response.TermsResponse.Term o2)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public int compare(org.apache.solr.client.solrj.response.TermsResponse.Term o1, org.apache.solr.client.solrj.response.TermsResponse.Term o2)
- Specified by:
compare
in interfaceComparator<org.apache.solr.client.solrj.response.TermsResponse.Term>
-
-