Class AbstractSearchResult<T>

    • Constructor Detail

      • AbstractSearchResult

        public AbstractSearchResult​(int totalHits,
                                    int offset)
        Parameters:
        totalHits - the total number of possible results without offset or maximum results limits
        offset - the index in the total number of possible search result where this extract starts
    • Method Detail

      • getTotalHits

        public int getTotalHits()
        Specified by:
        getTotalHits in interface IterableResult<T>
        Returns:
        the total number of possible results without offset or maximum results limits
      • getOffset

        public int getOffset()
        Specified by:
        getOffset in interface IterableResult<T>
        Returns:
        the index in the total number of possible search result where this extract starts