public class RawTwinQuery extends Object
| Modifier and Type | Method and Description |
|---|---|
static RawTwinQuery |
createFromConnectionString(String connectionString)
Static constructor to create instance from connection string
|
boolean |
hasNext(Query query)
Returns the availability of next element in response.
|
String |
next(Query query)
Returns the next json element available in response
|
Query |
query(String sqlQuery)
Creates a query object for this query using default page size
|
Query |
query(String sqlQuery,
Integer pageSize)
Creates a query object for this query
|
public static RawTwinQuery createFromConnectionString(String connectionString) throws IOException
connectionString - The iot hub connection stringIOException - This exception is thrown if the object creation failedpublic Query query(String sqlQuery, Integer pageSize) throws IotHubException, IOException
sqlQuery - Sql style query for Raw data over twinpageSize - Size to restrict response of query byIotHubException - If IotHub did not respond successfully to the queryIOException - If any of the input parameters are incorrectpublic Query query(String sqlQuery) throws IotHubException, IOException
sqlQuery - Sql style query for Raw data over twinIotHubException - If IotHub did not respond successfully to the queryIOException - If any of the input parameters are incorrectpublic boolean hasNext(Query query) throws IotHubException, IOException
query - Object corresponding to the queryIotHubException - If IotHub could not respond successfully to the query requestIOException - If any of the input parameters are incorrectpublic String next(Query query) throws IOException, IotHubException, NoSuchElementException
query - Object corresponding for this queryIOException - If any of input parameters are incorrectIotHubException - If IotHub could not respond successfully to the query requestNoSuchElementException - If no other element is foundCopyright © 2020. All rights reserved.