Package org.apache.solr.analytics.facet
Class SortableFacet.FacetSortSpecification
- java.lang.Object
-
- org.apache.solr.analytics.facet.SortableFacet.FacetSortSpecification
-
- Enclosing class:
- SortableFacet
public static class SortableFacet.FacetSortSpecification extends Object
Specifies how to sort the buckets of a sortable facet.
-
-
Constructor Summary
Constructors Constructor Description FacetSortSpecification(FacetResultsComparator comparator, int limit, int offset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FacetResultsComparatorgetComparator()intgetLimit()Get the maximum number of buckets to be returned.intgetOffset()Get the first bucket to return, has to be used with thelimitoption.voidsetLimit(int limit)Set the maximum number of buckets to be returned.
-
-
-
Constructor Detail
-
FacetSortSpecification
public FacetSortSpecification(FacetResultsComparator comparator, int limit, int offset)
-
-
Method Detail
-
getComparator
public FacetResultsComparator getComparator()
-
getLimit
public int getLimit()
Get the maximum number of buckets to be returned.- Returns:
- the limit
-
setLimit
public void setLimit(int limit)
Set the maximum number of buckets to be returned.- Parameters:
limit- the maximum number of buckets
-
getOffset
public int getOffset()
Get the first bucket to return, has to be used with thelimitoption.- Returns:
- the bucket offset
-
-