Class SortableFacet.FacetSortSpecification

  • Enclosing class:
    SortableFacet

    public static class SortableFacet.FacetSortSpecification
    extends Object
    Specifies how to sort the buckets of a sortable facet.
    • Field Detail

      • limit

        protected int limit
      • offset

        protected int offset
    • Constructor Detail

      • FacetSortSpecification

        public FacetSortSpecification​(FacetResultsComparator comparator,
                                      int limit,
                                      int offset)
    • Method Detail

      • 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 the limit option.
        Returns:
        the bucket offset