T
- The type of search result.
public class Results<T>
extends java.lang.Object
implements java.lang.Iterable<T>, java.io.Serializable
OperationResult
, a collection of
results, and a number of found and returned results.
Modifier and Type | Method and Description |
---|---|
Cursor
|
getCursor
()
A cursor to be used to continue the search after all the results
in this search response.
|
long
|
getNumberFound
()
The number of results found by the search.
|
int
|
getNumberReturned
()
|
OperationResult
|
getOperationResult
()
|
java.util.Collection<
T
>
|
getResults
()
|
java.util.Iterator<
T
>
|
iterator
()
|
java.lang.String
|
toString
()
|
public java.util.Iterator<T> iterator()
iterator
in interface
java.lang.Iterable<
T
>
public OperationResult getOperationResult()
public long getNumberFound()
QueryOptions.getNumberFoundAccuracy()
,
then it is accurate, otherwise it is an approximation
public int getNumberReturned()
public java.util.Collection<T> getResults()
public Cursor getCursor()
QueryOptions.Builder.setCursor(com.google.appengine.api.search.Cursor)
with a value of
Cursor.newBuilder().build()
, otherwise
getCursor()
will return null.
null
if there are no more results
to be expected or if no cursor was configured in the
QueryOptions
.
public java.lang.String toString()
toString
in class
java.lang.Object