Interface Query


public interface Query
Defines a query and provides methods to evaluate the query on specific peers.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
  • Method Details

    • evaluate

      org.hyperledger.fabric.sdk.ProposalResponse evaluate(org.hyperledger.fabric.sdk.Peer peer)
      Evaluate the query on a specific peer.
      Parameters:
      peer - A peer.
      Returns:
      The query result from the peer.
      Throws:
      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.
      Parameters:
      peers - Peers to query.
      Returns:
      The query results from the peers.
      Throws:
      GatewayRuntimeException - if misconfiguration of system state prevents queries from being sent.