Skip to content

Commit

Permalink
Update comments.
Browse files Browse the repository at this point in the history
Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
  • Loading branch information
MaxKsyunz committed May 30, 2023
1 parent 6811a8c commit 36f2c47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ OpenSearchResponse search(Function<SearchRequest, SearchResponse> searchAction,
*/
OpenSearchExprValueFactory getExprValueFactory();

/**
* Check if there is more data to get from OpenSearch.
* @return True if calling {@ref OpenSearchClient.search} with this request will
* return non-empty response.
*/
boolean hasAnotherBatch();

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,6 @@ public void reset() {
scrollId = NO_SCROLL_ID;
}

/**
* Convert a scroll request to string that can be included in a cursor.
* @return a string representing the scroll request.
*/
@Override
public boolean hasAnotherBatch() {
return !needClean && !scrollId.equals(NO_SCROLL_ID);
Expand Down

0 comments on commit 36f2c47

Please sign in to comment.