Query Class
- java.lang. Object 
- com.microsoft. azure. sdk. iot. service. devicetwin. Query 
 
- com.
public class Query
Sql style query IotHub for twin, jobs, device jobs or raw data
Constructor Summary
| Constructor | Description | 
|---|---|
| Query(int pageSize, QueryType requestQueryType) | Constructor for Query. | 
| Query(String query, int pageSize, QueryType requestQueryType) | Constructor for Query. | 
Method Summary
| Modifier and Type | Method and Description | 
|---|---|
| boolean | hasNext() Returns the availability of next element in the query response. | 
| java.lang.Object | next() provides the next element in query response. | 
| Query | sendQueryRequest(IotHubConnectionString iotHubConnectionString, URL url, HttpMethod method, int httpConnectTimeout, int httpReadTimeout, Proxy proxy) Sends request for the query to the Iot | 
| Query | sendQueryRequest(IotHubConnectionString iotHubConnectionString, URL url, HttpMethod method, Long timeoutInMs) Deprecated Sends request for the query to the Iot | 
| Query | sendQueryRequest(TokenCredentialCache credentialCache, AzureSasCredential azureSasCredential, IotHubConnectionString iotHubConnectionString, URL url, HttpMethod method, int httpConnectTimeout, int httpReadTimeout, Proxy proxy) Sends request for the query to the Iot | 
Methods inherited from java.lang.Object
Constructor Details
Query
public Query(int pageSize, QueryType requestQueryType)
Constructor for Query.
Parameters:
Throws:
Query
public Query(String query, int pageSize, QueryType requestQueryType)
Constructor for Query.
Parameters:
Throws:
Method Details
hasNext
public boolean hasNext()
Returns the availability of next element in the query response.
Returns:
Throws:
next
public Object next()
provides the next element in query response.
Returns:
Throws:
sendQueryRequest
public QueryResponse sendQueryRequest(IotHubConnectionString iotHubConnectionString, URL url, HttpMethod method, int httpConnectTimeout, int httpReadTimeout, Proxy proxy)
Sends request for the query to the IotHub.
Parameters:
Returns:
Throws:
sendQueryRequest
public QueryResponse sendQueryRequest(IotHubConnectionString iotHubConnectionString, URL url, HttpMethod method, Long timeoutInMs)
Deprecated
Sends request for the query to the IotHub.
Parameters:
Returns:
Throws:
sendQueryRequest
public QueryResponse sendQueryRequest(TokenCredentialCache credentialCache, AzureSasCredential azureSasCredential, IotHubConnectionString iotHubConnectionString, URL url, HttpMethod method, int httpConnectTimeout, int httpReadTimeout, Proxy proxy)
Sends request for the query to the IotHub.
Parameters:
Returns:
Throws: