Interface Query
-
public interface Query
Defines a query and provides methods to evaluate the query on specific peers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<org.hyperledger.fabric.sdk.Peer,org.hyperledger.fabric.sdk.ProposalResponse>
evaluate(java.util.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 Detail
-
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
java.util.Map<org.hyperledger.fabric.sdk.Peer,org.hyperledger.fabric.sdk.ProposalResponse> evaluate(java.util.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.
-
-