Package io.nitric.api.document
Class Query.QueryResults<T>
- java.lang.Object
-
- io.nitric.api.document.Query.QueryResults<T>
-
- All Implemented Interfaces:
Iterable<Query.ResultDoc<T>>
public static class Query.QueryResults<T> extends Object implements Iterable<Query.ResultDoc<T>>
Provides a Query Result class.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected io.nitric.proto.document.v1.DocumentQueryRequest
buildDocQueryRequest(List<io.nitric.api.document.Query.Expression> expressions)
Map<String,String>
getPagingToken()
Return the query paging continuation token if there are more items available.Iterator<Query.ResultDoc<T>>
iterator()
Return a typed query results iterator.protected void
loadPageData(io.nitric.proto.document.v1.DocumentQueryResponse response)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
iterator
public Iterator<Query.ResultDoc<T>> iterator()
Return a typed query results iterator.
-
getPagingToken
public Map<String,String> getPagingToken()
Return the query paging continuation token if there are more items available. If this value is null then no further query results are available.- Returns:
- the query paging continuation token
-
buildDocQueryRequest
protected io.nitric.proto.document.v1.DocumentQueryRequest buildDocQueryRequest(List<io.nitric.api.document.Query.Expression> expressions)
-
loadPageData
protected void loadPageData(io.nitric.proto.document.v1.DocumentQueryResponse response)
-
-