Class QueryResultsIteratorWithMetadataImpl<T>

    • Constructor Summary

      Constructors 
      Constructor Description
      QueryResultsIteratorWithMetadataImpl​(Handler handler, java.lang.String channelId, java.lang.String txId, org.hyperledger.fabric.protos.peer.ChaincodeShim.QueryResponse queryResponse, java.util.function.Function<org.hyperledger.fabric.protos.peer.ChaincodeShim.QueryResultBytes,T> mapper)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close​()  
      org.hyperledger.fabric.protos.peer.ChaincodeShim.QueryResponseMetadata getMetadata​()  
      java.util.Iterator<T> iterator​()  
      • Methods inherited from interface java.lang.AutoCloseable

        close
      • Methods inherited from interface java.lang.Iterable

        forEach, iterator, spliterator
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • QueryResultsIteratorWithMetadataImpl

        public QueryResultsIteratorWithMetadataImpl​(Handler handler,
                                                    java.lang.String channelId,
                                                    java.lang.String txId,
                                                    org.hyperledger.fabric.protos.peer.ChaincodeShim.QueryResponse queryResponse,
                                                    java.util.function.Function<org.hyperledger.fabric.protos.peer.ChaincodeShim.QueryResultBytes,T> mapper)
    • Method Detail

      • iterator

        public java.util.Iterator<T> iterator​()
        Specified by:
        iterator in interface java.lang.Iterable<T>
      • close

        public void close​()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception