Sdílet prostřednictvím


SqlQuery Class

  • java.lang.Object
    • com.microsoft.azure.sdk.iot.service.devicetwin.SqlQuery

public class SqlQuery

Method Summary

Modifier and Type Method and Description
static SqlQuery createSqlQuery(String selection, SqlQuery.FromType fromType, String where, String groupby)

Creates a Sql style query for IotHub

java.lang.String getQuery()

Getter for the String corresponding to Sql Query String created

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Method Details

createSqlQuery

public static SqlQuery createSqlQuery(String selection, SqlQuery.FromType fromType, String where, String groupby)

Creates a Sql style query for IotHub

Parameters:

selection - Select clause for query. Cannot be null.
fromType - From enum for Query. Cannot be null.
where - Where clause for Query. Can be null.
groupby - GroupBy clause for query. Can be null

Returns:

SqlQuery Object as specified by param

Throws:

java.io.IOException - If input parameter is invalid

getQuery

public String getQuery()

Getter for the String corresponding to Sql Query String created

Returns:

String corresponding to Sql Query created

Applies to