TwinQueryResponse Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. service. query. TwinQueryResponse
- com.
public class TwinQueryResponse
A pageable set of Twin objects returned from a query.
Constructor Summary
Constructor | Description | |
---|---|---|
TwinQueryResponse(String json, QueryClient queryClient, String originalQuery) |
Method Summary
Modifier and Type | Method and Description |
---|---|
boolean | hasNext() |
Twin |
next()
Return the next Twin from the query. If the previous page of query results has been exhausted, then this method will make a request to the service to get the next page of results using the default paging options. |
Twin |
next(QueryPageOptions pageOptions)
Return the next Twin from the query. If the previous page of query results has been exhausted, then this method will make a request to the service to get the next page of results using the provided paging options. |
Constructor Details
TwinQueryResponse
public TwinQueryResponse(String json, QueryClient queryClient, String originalQuery)
Parameters:
Method Details
hasNext
public boolean hasNext()
Returns:
next
public Twin next()
Return the next Twin from the query. If the previous page of query results has been exhausted, then this method will make a request to the service to get the next page of results using the default paging options.
Returns:
Throws:
next
public Twin next(QueryPageOptions pageOptions)
Return the next Twin from the query. If the previous page of query results has been exhausted, then this method will make a request to the service to get the next page of results using the provided paging options.
Parameters:
Returns:
Throws:
Applies to
Azure SDK for Java