com.microsoft.azure.sdk.iot.provisioning.service.Query.hasNext()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(203)

本文整理了Java中com.microsoft.azure.sdk.iot.provisioning.service.Query.hasNext方法的一些代码示例,展示了Query.hasNext的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.hasNext方法的具体详情如下:
包路径:com.microsoft.azure.sdk.iot.provisioning.service.Query
类名称:Query
方法名:hasNext

Query.hasNext介绍

[英]Getter for hasNext.

It will return true if the query is not finished in the Device Provisioning Service, and another iteration with #next() may return more items. Call #next() after receive a hasNext true will result in a QueryResult that can or cannot contains elements. And call #next() after receive a hasNext false will result in a exception.
[中]hasNext的Getter。
如果查询没有在设备配置服务中完成,它将返回true,使用#next()的另一次迭代可能会返回更多项。在收到hasNext true后调用#next()将导致QueryResult,该结果可以包含元素,也可以不包含元素。并在收到hasNext false后调用#next()将导致异常。

代码示例

代码示例来源:origin: Azure/azure-iot-sdk-java

Query query = provisioningServiceClient.createIndividualEnrollmentQuery(querySpecification, QUERY_PAGE_SIZE);
while(query.hasNext())

代码示例来源:origin: Azure/azure-iot-sdk-java

Query query = provisioningServiceClient.createEnrollmentGroupQuery(querySpecification);
while(query.hasNext())

代码示例来源:origin: Azure/azure-iot-sdk-java

Query query = provisioningServiceClient.createIndividualEnrollmentQuery(querySpecification);
while(query.hasNext())

相关文章