You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: branches/autosynth-errorreporting/google-cloud-clients/google-cloud-datastore/src/main/java/com/google/cloud/datastore/QueryResults.java
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@
16
16
17
17
package com.google.cloud.datastore;
18
18
19
+
import com.google.datastore.v1.QueryResultBatch;
19
20
import java.util.Iterator;
20
21
21
22
/**
@@ -66,4 +67,7 @@ public interface QueryResults<V> extends Iterator<V> {
66
67
* }</pre>
67
68
*/
68
69
int getSkippedResults();
70
+
71
+
/** Returns MoreResults state of the query after the current batch. */
Copy file name to clipboardExpand all lines: branches/autosynth-errorreporting/google-cloud-clients/google-cloud-datastore/src/main/java/com/google/cloud/datastore/QueryResultsImpl.java
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,7 @@ class QueryResultsImpl<T> extends AbstractIterator<T> implements QueryResults<T>
Copy file name to clipboardExpand all lines: branches/autosynth-errorreporting/google-cloud-clients/google-cloud-datastore/src/test/java/com/google/cloud/datastore/DatastoreTest.java
+20Lines changed: 20 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -585,6 +585,26 @@ public void testStructuredQueryPagination() throws DatastoreException {
585
585
EasyMock.verify(rpcFactoryMock, rpcMock);
586
586
}
587
587
588
+
@Test
589
+
public void testStructuredQueryPaginationWithMoreResults() throws DatastoreException {
0 commit comments