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 extendingQueryResultsIteratorimplementations,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 voidclose()org.hyperledger.fabric.protos.peer.ChaincodeShim.QueryResponseMetadatagetMetadata()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:
getMetadatain interfaceQueryResultsIteratorWithMetadata<T>
-
iterator
public java.util.Iterator<T> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<T>
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
-