QueryCollection Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. service. devicetwin. QueryCollection
- com.
public class QueryCollection
Constructor Summary
Modifier | Constructor | Description |
---|---|---|
protected | QueryCollection(int pageSize, QueryType requestQueryType, IotHubConnectionString iotHubConnectionString, URL url, HttpMethod httpMethod, int httpConnectTimeout, int httpReadTimeout, Proxy proxy) |
Constructor for non-sql based queries. |
protected | QueryCollection(int pageSize, QueryType requestQueryType, IotHubConnectionString iotHubConnectionString, URL url, HttpMethod httpMethod, long timeout) |
Deprecated Constructor for non-sql based queries. |
protected | QueryCollection(String query, int pageSize, QueryType requestQueryType, IotHubConnectionString iotHubConnectionString, URL url, HttpMethod httpMethod, int httpConnectTimeout, int httpReadTimeout, Proxy proxy) |
Constructor for sql based queries |
protected | QueryCollection(String query, int pageSize, QueryType requestQueryType, IotHubConnectionString iotHubConnectionString, URL url, HttpMethod httpMethod, long timeout) |
Deprecated Constructor for sql based queries. |
Method Summary
Modifier and Type | Method and Description |
---|---|
protected java.lang.Integer |
getPageSize()
Getter for page size. |
protected boolean |
hasNext()
Returns if this query collection has a next collection to return. |
protected
Query |
next()
Returns the next Query |
protected
Query |
next(QueryOptions options)
Returns the next Query |
Methods inherited from java.lang.Object
Constructor Details
QueryCollection
protected QueryCollection(int pageSize, QueryType requestQueryType, IotHubConnectionString iotHubConnectionString, URL url, HttpMethod httpMethod, int httpConnectTimeout, int httpReadTimeout, Proxy proxy)
Constructor for non-sql based queries.
Parameters:
QueryCollection
protected QueryCollection(int pageSize, QueryType requestQueryType, IotHubConnectionString iotHubConnectionString, URL url, HttpMethod httpMethod, long timeout)
Deprecated
Constructor for non-sql based queries.
Parameters:
QueryCollection
protected QueryCollection(String query, int pageSize, QueryType requestQueryType, IotHubConnectionString iotHubConnectionString, URL url, HttpMethod httpMethod, int httpConnectTimeout, int httpReadTimeout, Proxy proxy)
Constructor for sql based queries
Parameters:
QueryCollection
protected QueryCollection(String query, int pageSize, QueryType requestQueryType, IotHubConnectionString iotHubConnectionString, URL url, HttpMethod httpMethod, long timeout)
Deprecated
Constructor for sql based queries.
Parameters:
Method Details
getPageSize
protected Integer getPageSize()
Getter for page size.
Returns:
hasNext
protected boolean hasNext()
Returns if this query collection has a next collection to return.
Returns:
next
protected QueryCollectionResponse
Returns the next QueryCollectionResponse object. The query shall continue with the same page size and use the internally saved continuation token.
Returns:
Throws:
next
protected QueryCollectionResponse
Returns the next QueryCollectionResponse object. If the provided query options have a continuation token, the query shall continue from that token. The query shall use the page size set in the query options.
Parameters:
Returns:
Throws:
Applies to
Azure SDK for Java