public static class TermsComponent.TermCountComparator extends Object implements Comparator<TermsResponse.Term>
TermsResponse.Term
sorting
This sorts term by frequency in descending orderConstructor and Description |
---|
TermCountComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(TermsResponse.Term o1,
TermsResponse.Term o2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public int compare(TermsResponse.Term o1, TermsResponse.Term o2)
compare
in interface Comparator<TermsResponse.Term>
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.