本文整理了Java中com.microsoft.azure.sdk.iot.provisioning.service.Query.next
方法的一些代码示例,展示了Query.next
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.next
方法的具体详情如下:
包路径:com.microsoft.azure.sdk.iot.provisioning.service.Query
类名称:Query
方法名:next
[英]Return the next page of result for the query.
[中]返回查询结果的下一页。
代码示例来源:origin: Azure/azure-iot-sdk-java
/**
* Return the next page of result for the query using a new continuationToken.
*
* @param continuationToken the {@code String} with the previous continuationToken. It cannot be {@code null} or empty.
* @return A {@link QueryResult} with the next page of items for the query.
* @throws NoSuchElementException if the query does no have more pages to return.
*/
public QueryResult next(String continuationToken)
{
/* SRS_QUERY_21_018: [The next shall throw NoSuchElementException if the provided continuationToken is null or empty.] */
if(Tools.isNullOrEmpty(continuationToken))
{
throw new NoSuchElementException("There is no Continuation Token to get pending elements,");
}
/* SRS_QUERY_21_019: [The next shall store the provided continuationToken.] */
this.continuationToken = continuationToken;
/* SRS_QUERY_21_020: [The next shall return the next page of results by calling the next().] */
return next();
}
代码示例来源:origin: Azure/azure-iot-sdk-java
QueryResult queryResult = query.next();
System.out.println(queryResult);
代码示例来源:origin: Azure/azure-iot-sdk-java
QueryResult queryResult = query.next();
System.out.println(queryResult);
代码示例来源:origin: Azure/azure-iot-sdk-java
QueryResult queryResult = query.next();
System.out.println(queryResult);
内容来源于网络,如有侵权,请联系作者删除!