QueryClient Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. service. query. QueryClient
- com.
public class QueryClient
Constructor Summary
Constructor | Description |
---|---|
QueryClient(String connectionString) |
Constructor to create instance from connection string |
QueryClient(String hostName, AzureSasCredential azureSasCredential) |
Create a new QueryClient instance. |
QueryClient(String hostName, AzureSasCredential azureSasCredential, QueryClientOptions options) |
Create a new QueryClient instance. |
QueryClient(String connectionString, QueryClientOptions options) |
Constructor to create instance from connection string |
QueryClient(String hostName, TokenCredential credential) |
Create a new QueryClient instance. |
QueryClient(String hostName, TokenCredential credential, QueryClientOptions options) |
Create a new QueryClient instance. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Job |
queryJobs(ScheduledJobType jobType, ScheduledJobStatus jobStatus)
Query from your IoT Hub's set of scheduled jobs by job type and job status. |
Job |
queryJobs(ScheduledJobType jobType, ScheduledJobStatus jobStatus, QueryPageOptions options)
Query from your IoT Hub's set of scheduled jobs by job type and job status. |
Job |
queryJobs(String query)
Query from your IoT Hub's set of scheduled jobs. |
Job |
queryJobs(String query, QueryPageOptions options)
Query from your IoT Hub's set of scheduled jobs. |
Raw |
queryRaw(String query)
Query miscellaneous data from your IoT Hub. |
Raw |
queryRaw(String query, QueryPageOptions options)
Query miscellaneous data from your IoT Hub. |
Twin |
queryTwins(String query)
Query from your IoT Hub's set of Twins. |
Twin |
queryTwins(String query, QueryPageOptions options)
Query from your IoT Hub's set of Twins. |
Constructor Details
QueryClient
public QueryClient(String connectionString)
Constructor to create instance from connection string
Parameters:
QueryClient
public QueryClient(String hostName, AzureSasCredential azureSasCredential)
Create a new QueryClient instance.
Parameters:
QueryClient
public QueryClient(String hostName, AzureSasCredential azureSasCredential, QueryClientOptions options)
Create a new QueryClient instance.
Parameters:
QueryClient
public QueryClient(String connectionString, QueryClientOptions options)
Constructor to create instance from connection string
Parameters:
QueryClient
public QueryClient(String hostName, TokenCredential credential)
Create a new QueryClient instance.
Parameters:
QueryClient
public QueryClient(String hostName, TokenCredential credential, QueryClientOptions options)
Create a new QueryClient instance.
Parameters:
Method Details
queryJobs
public JobQueryResponse queryJobs(ScheduledJobType jobType, ScheduledJobStatus jobStatus)
Query from your IoT Hub's set of scheduled jobs by job type and job status.
Parameters:
Returns:
Throws:
queryJobs
public JobQueryResponse queryJobs(ScheduledJobType jobType, ScheduledJobStatus jobStatus, QueryPageOptions options)
Query from your IoT Hub's set of scheduled jobs by job type and job status.
Parameters:
Returns:
Throws:
queryJobs
public JobQueryResponse queryJobs(String query)
Query from your IoT Hub's set of scheduled jobs.
Parameters:
Returns:
Throws:
queryJobs
public JobQueryResponse queryJobs(String query, QueryPageOptions options)
Query from your IoT Hub's set of scheduled jobs.
Parameters:
Returns:
Throws:
queryRaw
public RawQueryResponse queryRaw(String query)
Query miscellaneous data from your IoT Hub.
Parameters:
Returns:
Throws:
queryRaw
public RawQueryResponse queryRaw(String query, QueryPageOptions options)
Query miscellaneous data from your IoT Hub.
Parameters:
Returns:
Throws:
queryTwins
public TwinQueryResponse queryTwins(String query)
Query from your IoT Hub's set of Twins.
Parameters:
Returns:
Throws:
queryTwins
public TwinQueryResponse queryTwins(String query, QueryPageOptions options)
Query from your IoT Hub's set of Twins.
Parameters:
Returns:
Throws:
Applies to
Azure SDK for Java