Interface ResultSet

    • Method Detail

      • getOffset

        int getOffset()
        Returns the current offset for this result set.
        Returns:
        the offset as an integer.
      • getRange

        int getRange()
        Returns the amount of results from offset requested.
        Returns:
        the amount of results from offset requested.
      • getTotalHits

        int getTotalHits()
        Returns the total number of hits this resultset comes from.
        Returns:
        an integer value
      • getPageHits

        int getPageHits()
        Returns the amount of actual matching results.

        This is in contrast to getRange() that returns the maximum number of results per page.

        Returns:
        the amount of actual matching results.
      • replay

        ResultSet replay​(int offset,
                         int range)
                  throws SearchException
        Replays the same query with new offset and range.
        Parameters:
        offset - the new offset
        range - the new range
        Returns:
        a new, updated ResultSet
        Throws:
        SearchException
      • hasNextPage

        boolean hasNextPage()
        Is there another page available?
        Returns:
        true if next page available / false if not.
      • isFirstPage

        boolean isFirstPage()
        Is this result set the first page of results?
        Returns:
        true if first page / false of not.
      • getPageNumber

        int getPageNumber()
        Computes the page number among the total set of results.
        Returns:
        the page number