Package org.hyperledger.fabric.shim.impl
Class QueryResultsIteratorWithMetadataImpl<T>
- java.lang.Object
-
- org.hyperledger.fabric.shim.impl.QueryResultsIteratorWithMetadataImpl<T>
-
- Type Parameters:
T
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<T>
,QueryResultsIterator<T>
,QueryResultsIteratorWithMetadata<T>
public class QueryResultsIteratorWithMetadataImpl<T> extends java.lang.Object implements QueryResultsIteratorWithMetadata<T>
Implementation ofQueryResultsIteratorWithMetadata
, by extendingQueryResultsIterator
implementations,QueryResultsIteratorImpl
-
-
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()
-
-
-
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
-
getMetadata
public org.hyperledger.fabric.protos.peer.ChaincodeShim.QueryResponseMetadata getMetadata()
- Specified by:
getMetadata
in interfaceQueryResultsIteratorWithMetadata<T>
-
iterator
public java.util.Iterator<T> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<T>
-
close
public void close() throws java.lang.Exception
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Throws:
java.lang.Exception
-
-