Class SearchResponsePageImpl
java.lang.Object
io.camunda.client.impl.search.response.SearchResponsePageImpl
- All Implemented Interfaces:
SearchResponsePage
-
Constructor Summary
ConstructorsConstructorDescriptionSearchResponsePageImpl(Long totalItems, Boolean hasMoreTotalItems, String startCursor, String endCursor) SearchResponsePageImpl(Long totalItems, String startCursor, String endCursor) -
Method Summary
Modifier and TypeMethodDescriptionThe cursor to the last item in the returned page.Whether the total items count exceeds the maximum limit in Elasticsearch (ES) or OpenSearch (OS).The cursor to the first item in the returned page.Total number of items that matches the query
-
Constructor Details
-
SearchResponsePageImpl
-
SearchResponsePageImpl
-
-
Method Details
-
totalItems
Description copied from interface:SearchResponsePageTotal number of items that matches the query- Specified by:
totalItemsin interfaceSearchResponsePage
-
hasMoreTotalItems
Description copied from interface:SearchResponsePageWhether the total items count exceeds the maximum limit in Elasticsearch (ES) or OpenSearch (OS).In ES or OS, total items are often capped by a predefined configurable limit. If the result set is greater than or equal to this, this method returns
true; otherwise, it returnsfalse.For RDBMS-backed searches, this is always
falsebecause there is no such limitation.This helps clients understand when total item counts may be incomplete due to ES or OS limits.
- Specified by:
hasMoreTotalItemsin interfaceSearchResponsePage- Returns:
trueif the total result count exceeds the cap in ES or OS;falseotherwise.
-
startCursor
Description copied from interface:SearchResponsePageThe cursor to the first item in the returned page.- Specified by:
startCursorin interfaceSearchResponsePage
-
endCursor
Description copied from interface:SearchResponsePageThe cursor to the last item in the returned page.- Specified by:
endCursorin interfaceSearchResponsePage
-