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

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

本文整理了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

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);

相关文章

微信公众号

最新文章

更多