Class DelegatingComparator
- java.lang.Object
-
- org.apache.solr.analytics.facet.compare.FacetResultsComparator
-
- org.apache.solr.analytics.facet.compare.DelegatingComparator
-
- All Implemented Interfaces:
Comparator<SortableFacet.FacetBucket>
public class DelegatingComparator extends FacetResultsComparator
A comparator used to sort the facet-value buckets of facet, using the delegate comparator if two values are equal.
-
-
Field Summary
-
Fields inherited from class org.apache.solr.analytics.facet.compare.FacetResultsComparator
resultMult
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(SortableFacet.FacetBucket b1, SortableFacet.FacetBucket b2)
Compare one facet bucket to another.static FacetResultsComparator
joinComparators(Collection<FacetResultsComparator> comparators)
-
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
-
joinComparators
public static FacetResultsComparator joinComparators(Collection<FacetResultsComparator> comparators) throws SolrException
- Throws:
SolrException
-
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
-
-