Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QueryExecutor ¶
type QueryExecutor struct {
// contains filtered or unexported fields
}
QueryExecutor is a simple query executor that reads data directly from the provided state database without acquiring a ledger read lock.
func New ¶
func New(db extstatedb.StateDB) *QueryExecutor
New returns a new query executor that reads data directly from the provided state database
func (*QueryExecutor) GetPrivateDataHash ¶
func (sqe *QueryExecutor) GetPrivateDataHash(ns, coll, key string) ([]byte, error)
GetPrivateDataHash gets the hash of the value of a private data item identified by a tuple <namespace, collection, key>
func (*QueryExecutor) GetState ¶
func (sqe *QueryExecutor) GetState(ns string, key string) ([]byte, error)
GetState gets the value for given namespace and key. For a chaincode, the namespace corresponds to the chaincodeId
func (*QueryExecutor) GetStateRangeScanIterator ¶
func (sqe *QueryExecutor) GetStateRangeScanIterator(ns string, startKey string, endKey string) (ledger.ResultsIterator, error)
GetStateRangeScanIterator returns an iterator that contains all the key-values between given key ranges.
Click to show internal directories.
Click to hide internal directories.