QueryResultIterator (Google App Engine API for Java)
Stay organized with collections
Save and categorize content based on your preferences.
-
- Type Parameters:
T
- the type of result returned by the query
- All Superinterfaces:
- java.util.Iterator<T>
public interface QueryResultIterator<T>
extends java.util.Iterator<T>
A class that iterates through the results of a
Query
-
-
Method Summary
-
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
-
-
Method Detail
-
getCursor
Cursor getCursor()
Gets a
Cursor
that points to the
Entity
immediately after the last
Entity
that was retrieved by
Iterator.next()
.
- Returns:
- a
Cursor
or null
if this query result cannot be resumed. (Note that a
Cursor is returned even if the last element has been reached).
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-16 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-16 UTC."],[[["`QueryResultIterator\u003cT\u003e` is an interface designed for iterating through the results of a `Query`."],["It extends the `java.util.Iterator\u003cT\u003e` interface, inheriting its standard methods like `forEachRemaining`, `hasNext`, `next`, and `remove`."],["The `getCursor()` method retrieves a `Cursor` that identifies the position immediately after the last retrieved `Entity`."],["The `getIndexList()` method provides a list of indexes utilized during the query execution, or `null` if the indexes are not known."]]],[]]