All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hyperledger.fabric.shim.ledger.QueryResultsIteratorWithMetadata Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2019 IBM All Rights Reserved.
 *
 * SPDX-License-Identifier: Apache-2.0
 */

package org.hyperledger.fabric.shim.ledger;

import org.hyperledger.fabric.protos.peer.QueryResponseMetadata;

/**
 * QueryResultsIteratorWithMetadata allows a chaincode to iterate over a set of key/value pairs returned by range,
 * execute and history queries. In addition, it store {@link org.hyperledger.fabric.protos.peer.QueryResponseMetadata},
 * returned by pagination range queries
 *
 * @param  the type of elements returned by the iterator
 */
public interface QueryResultsIteratorWithMetadata extends Iterable, AutoCloseable {
    /** @return Query Metadata */
    QueryResponseMetadata getMetadata();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy