Class ResponsePage
- java.lang.Object
-
- co.elasticsearch.enterprisesearch.client.model.request.Page
-
- co.elasticsearch.enterprisesearch.client.model.response.ResponsePage
-
public class ResponsePage extends Page
-
-
Constructor Summary
Constructors Constructor Description ResponsePage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)IntegergetTotalPages()Response Value
Number representing the total pages of results.IntegergetTotalResults()Response Value
Number representing the total results across all pages.
The values 0 through 9999 are exact counts.
The value 10000 is a pseudo keyword representing greater than or equal to 10,000 results.inthashCode()ResponsePagesetTotalPages(Integer totalPages)Response Value
Number representing the total pages of results.ResponsePagesetTotalResults(Integer totalResults)Response Value
Number representing the total results across all pages.
The values 0 through 9999 are exact counts.
The value 10000 is a pseudo keyword representing greater than or equal to 10,000 results.StringtoString()-
Methods inherited from class co.elasticsearch.enterprisesearch.client.model.request.Page
getCurrent, getSize, setCurrent, setSize
-
-
-
-
Method Detail
-
getTotalPages
public Integer getTotalPages()
Response Value
Number representing the total pages of results. Value is 0 when you paginate beyond 10,000 results.- Returns:
- the total number of pages
-
getTotalResults
public Integer getTotalResults()
Response Value
Number representing the total results across all pages.
The values 0 through 9999 are exact counts.
The value 10000 is a pseudo keyword representing greater than or equal to 10,000 results.- Returns:
- the total number of results
-
setTotalPages
public ResponsePage setTotalPages(Integer totalPages)
Response Value
Number representing the total pages of results. Value is 0 when you paginate beyond 10,000 results.- Parameters:
totalPages- The total number of pages- Returns:
this.
-
setTotalResults
public ResponsePage setTotalResults(Integer totalResults)
Response Value
Number representing the total results across all pages.
The values 0 through 9999 are exact counts.
The value 10000 is a pseudo keyword representing greater than or equal to 10,000 results.- Parameters:
totalResults- The total number of results- Returns:
this.
-
-