org.hyperledger.fabric.gateway.spi

## 接口 Query

-     public interface Query

  Defines a query and provides methods to evaluate the query on specific peers.

- - ### 方法概要

    所有方法 实例方法 抽象方法
    限定符和类型 | 方法和说明
    --- | ---
    `Map<org.hyperledger.fabric.sdk.Peer,org.hyperledger.fabric.sdk.ProposalResponse>` | `evaluate(Collection<org.hyperledger.fabric.sdk.Peer> peers)` Evaluate the query on several peers.
    `org.hyperledger.fabric.sdk.ProposalResponse` | `evaluate(org.hyperledger.fabric.sdk.Peer peer)` Evaluate the query on a specific peer.

- - ### 方法详细资料

    - #### evaluate

          org.hyperledger.fabric.sdk.ProposalResponse evaluate(org.hyperledger.fabric.sdk.Peer peer)

      Evaluate the query on a specific peer.
      参数:
        `peer` - A peer.
      返回:
        The query result from the peer.
      抛出:
        `GatewayRuntimeException` - if misconfiguration of system state prevents queries from being sent.

    - #### evaluate

          Map<org.hyperledger.fabric.sdk.Peer,org.hyperledger.fabric.sdk.ProposalResponse> evaluate(Collection<org.hyperledger.fabric.sdk.Peer> peers)

      Evaluate the query on several peers.
      参数:
        `peers` - Peers to query.
      返回:
        The query results from the peers.
      抛出:
        `GatewayRuntimeException` - if misconfiguration of system state prevents queries from being sent.

Copyright © 2023. All rights reserved.