コード例 #1
0
  /** {@inheritDoc} */
  @Override
  public void loadPage(
      long id, GridCacheQueryAdapter<?> qry, Collection<ClusterNode> nodes, boolean all) {
    assert cctx.config().getCacheMode() != LOCAL;
    assert qry != null;
    assert nodes != null;

    GridCacheDistributedQueryFuture<?, ?, ?> fut = futs.get(id);

    assert fut != null;

    try {
      GridCacheQueryRequest req =
          new GridCacheQueryRequest(
              cctx.cacheId(),
              id,
              cctx.name(),
              qry.pageSize(),
              qry.includeBackups(),
              fut.fields(),
              all,
              qry.keepPortable(),
              qry.subjectId(),
              qry.taskHash());

      sendRequest(fut, req, nodes);
    } catch (IgniteCheckedException e) {
      fut.onDone(e);
    }
  }