Skip to content

Commit 36f2c47

Browse files
author
MaxKsyunz
committed
Update comments.
Signed-off-by: MaxKsyunz <[email protected]>
1 parent 6811a8c commit 36f2c47

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

opensearch/src/main/java/org/opensearch/sql/opensearch/request/OpenSearchRequest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ OpenSearchResponse search(Function<SearchRequest, SearchResponse> searchAction,
5252
*/
5353
OpenSearchExprValueFactory getExprValueFactory();
5454

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

5762
/**

opensearch/src/main/java/org/opensearch/sql/opensearch/request/OpenSearchScrollRequest.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,6 @@ public void reset() {
147147
scrollId = NO_SCROLL_ID;
148148
}
149149

150-
/**
151-
* Convert a scroll request to string that can be included in a cursor.
152-
* @return a string representing the scroll request.
153-
*/
154150
@Override
155151
public boolean hasAnotherBatch() {
156152
return !needClean && !scrollId.equals(NO_SCROLL_ID);

0 commit comments

Comments
 (0)