RawTwinQuery Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. service. devicetwin. RawTwinQuery
- com.
public class RawTwinQuery
Constructor Summary
| Constructor | Description |
|---|---|
| RawTwinQuery(String connectionString) |
Constructor to create instance from connection string |
| RawTwinQuery(String hostName, AzureSasCredential azureSasCredential) |
Constructor to create instance from connection string |
| RawTwinQuery(String hostName, TokenCredential credential) |
Constructor to create instance from connection string |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Raw |
createFromConnectionString(String connectionString)
Deprecated
because this method declares a thrown IOException even though it never throws an IOException. Users are recommended to use RawTwinQuery(String connectionString) instead since it does not declare this exception even though it constructs the same Raw
Static constructor to create instance from connection string |
| synchronized boolean |
hasNext(Query query)
Returns the availability of next element in response. |
| synchronized java.lang.String |
next(Query query)
Returns the next json element available in response |
| synchronized Query |
query(String sqlQuery)
Creates a query object for this query using default page size |
| synchronized Query |
query(String sqlQuery, Integer pageSize)
Creates a query object for this query |
Methods inherited from java.lang.Object
Constructor Details
RawTwinQuery
public RawTwinQuery(String connectionString)
Constructor to create instance from connection string
Parameters:
RawTwinQuery
public RawTwinQuery(String hostName, AzureSasCredential azureSasCredential)
Constructor to create instance from connection string
Parameters:
RawTwinQuery
public RawTwinQuery(String hostName, TokenCredential credential)
Constructor to create instance from connection string
Parameters:
Method Details
createFromConnectionString
public static RawTwinQuery createFromConnectionString(String connectionString)
Deprecated
Static constructor to create instance from connection string
Parameters:
Returns:
Throws:
hasNext
public synchronized boolean hasNext(Query query)
Returns the availability of next element in response. Sends the request again (if possible) to retrieve response until no response is found.
Parameters:
Returns:
Throws:
next
public synchronized String next(Query query)
Returns the next json element available in response
Parameters:
Returns:
Throws:
query
public synchronized Query query(String sqlQuery)
Creates a query object for this query using default page size
Parameters:
Returns:
Throws:
query
public synchronized Query query(String sqlQuery, Integer pageSize)
Creates a query object for this query
Parameters:
Returns:
Throws: