Class FacetValueComparator
- java.lang.Object
-
- org.apache.solr.analytics.facet.compare.FacetResultsComparator
-
- org.apache.solr.analytics.facet.compare.FacetValueComparator
-
- All Implemented Interfaces:
Comparator<SortableFacet.FacetBucket>
public class FacetValueComparator extends FacetResultsComparator
A results comparator that compares the name of facet value buckets, which is the string value of the facet value.
-
-
Field Summary
-
Fields inherited from class org.apache.solr.analytics.facet.compare.FacetResultsComparator
resultMult
-
-
Constructor Summary
Constructors Constructor Description FacetValueComparator()
Create a facet value comparator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(SortableFacet.FacetBucket b1, SortableFacet.FacetBucket b2)
Compare one facet bucket to another.-
Methods inherited from class org.apache.solr.analytics.facet.compare.FacetResultsComparator
setDirection
-
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(SortableFacet.FacetBucket b1, SortableFacet.FacetBucket b2)
Description copied from class:FacetResultsComparator
Compare one facet bucket to another.- Specified by:
compare
in interfaceComparator<SortableFacet.FacetBucket>
- Specified by:
compare
in classFacetResultsComparator
- Parameters:
b1
- the first bucket to compareb2
- the second bucket to compare
-
-