# Interface QueryResultIterator&lt;T&gt; (5.0.3)

    public interface QueryResultIterator<T> extends Iterator<T>

A class that iterates through the results of a [Query](https://docs.cloud.google.com/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.search.Query(class))

## Implements

[Iterator\<T\>](https://docs.oracle.com/javase/8/docs/api/java/util/Iterator.html)

| ## Type Parameter ||
|---|---|
| **Name** | **Description** |
| `T` |   |

## Methods

### getCursor()

    public abstract Cursor getCursor()

Gets a [Cursor](https://docs.cloud.google.com/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.datastore.Cursor) that points to the [Entity](https://docs.cloud.google.com/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.datastore.Entity) immediately after the last [Entity](https://docs.cloud.google.com/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.datastore.Entity) that was retrieved by #next().

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.datastore.Cursor` | a [Cursor](https://docs.cloud.google.com/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.datastore.Cursor) or `null` if this query result cannot be resumed. (Note that a Cursor is returned even if the last element has been reached). |

### getIndexList()

    public abstract List<Index> getIndexList()

Get the indexes used to perform the query.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.datastore.Index>` | A list of index references, with no duplicates, or `null` if the indexes are not known. |