Revision created by MOE tool push_codebase.
[gae.git] / java / src / main / com / google / appengine / api / datastore / QueryResultList.java
blob1d4603c99ee4ba400ed7b4f7393c68912073d5a1
1 // Copyright 2009 Google Inc. All Rights Reserved.
2 package com.google.appengine.api.datastore;
4 import java.util.List;
6 /**
7 * A list of results returned by executing a {@link Query}.
9 * @param <T> the type of result returned by the query
12 public interface QueryResultList<T> extends List<T> {
13 /**
14 * Get the indexes used to perform the query.
16 * @return A list of index references, with no duplicates, or {@code null} if
17 * the indexes are not known.
19 List<Index> getIndexList();
21 /**
22 * Gets a {@link Cursor} that points to the result immediately after
23 * the last one in this list.
25 * @return a {@link Cursor} or {@code null} if this query result cannot be resumed. (Note that
26 * a Cursor is returned even if the end of the result list has been reached).
28 Cursor getCursor();