simplequeryexecutor

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL