public class QueryCollection extends Object
| Modifier | Constructor and 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.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
protected Integer |
getPageSize()
Getter for page size.
|
protected boolean |
hasNext()
Returns if this query collection has a next collection to return.
|
protected QueryCollectionResponse<String> |
next()
Returns the next QueryCollectionResponse object.
|
protected QueryCollectionResponse<String> |
next(QueryOptions options)
Returns the next QueryCollectionResponse object.
|
@Deprecated protected QueryCollection(String query, int pageSize, QueryType requestQueryType, IotHubConnectionString iotHubConnectionString, URL url, HttpMethod httpMethod, long timeout)
QueryCollection(String, int, QueryType, IotHubConnectionString, URL, HttpMethod, int, int, Proxy) instead.query - the sql query to use.pageSize - the size of the page to return per query collection response.requestQueryType - the type of query this is.iotHubConnectionString - the connection string to connect with to query against.url - the url to query against.httpMethod - the http method to call with the query.timeout - unused.IllegalArgumentException - if page size is 0 or negative, or if the query type is null or unknown, of if the query string is null or empty,
or if the provided connection string is null, or if the provided url is null, or if the provided http method is null.@Deprecated protected QueryCollection(int pageSize, QueryType requestQueryType, IotHubConnectionString iotHubConnectionString, URL url, HttpMethod httpMethod, long timeout)
QueryCollection(int, QueryType, IotHubConnectionString, URL, HttpMethod, int, int, Proxy) instead.pageSize - the size of the page to return per query collection response.requestQueryType - the type of query this is.iotHubConnectionString - the connection string to connect with to query against.url - the url to query against.httpMethod - the http method to call with the query.timeout - unused.IllegalArgumentException - if page size is 0 or negative, or if the query type is null or unknown,
or if the provided connection string is null, or if the provided url is null, or if the provided http method is nullprotected QueryCollection(String query, int pageSize, QueryType requestQueryType, IotHubConnectionString iotHubConnectionString, URL url, HttpMethod httpMethod, int httpConnectTimeout, int httpReadTimeout, Proxy proxy)
query - the sql query to use.pageSize - the size of the page to return per query collection response.requestQueryType - the type of query this is.iotHubConnectionString - the connection string to connect with to query against.url - the url to query against.httpMethod - the http method to call with the query.httpConnectTimeout - the http connect timeout to use.httpReadTimeout - the http read timeout to use.proxy - proxy typeIllegalArgumentException - if page size is 0 or negative, or if the query type is null or unknown, of if the query string is null or empty,
or if the provided connection string is null, or if the provided url is null, or if the provided http method is null.protected QueryCollection(int pageSize,
QueryType requestQueryType,
IotHubConnectionString iotHubConnectionString,
URL url,
HttpMethod httpMethod,
int httpConnectTimeout,
int httpReadTimeout,
Proxy proxy)
pageSize - the size of the page to return per query collection response.requestQueryType - the type of query this is.iotHubConnectionString - the connection string to connect with to query against.url - the url to query against.httpMethod - the http method to call with the query.httpConnectTimeout - the http connect timeout to use.httpReadTimeout - the http read timeout to use.proxy - the proxy typeIllegalArgumentException - if page size is 0 or negative, or if the query type is null or unknown,
or if the provided connection string is null, or if the provided url is null, or if the provided http method is null.protected boolean hasNext()
protected QueryCollectionResponse<String> next() throws IOException, IotHubException
IOException - If an IOException occurs when calling the Service API, or if the results of that call are unexpected.IotHubException - If an IotHubException occurs when calling the Service API.protected QueryCollectionResponse<String> next(QueryOptions options) throws IOException, IotHubException
options - The options for the query.IOException - If an IOException occurs when calling the Service API, or if the results of that call are unexpected.IotHubException - If an IotHubException occurs when calling the Service API.protected Integer getPageSize()
Copyright © 2022. All rights reserved.