queryutil

package
v0.0.0-...-fbe82ab Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QECombiner

type QECombiner struct {
	QueryExecuters []QueryExecuter //按优先顺序递减的实际执行者
}

QeCombiner组合来自一个或多个基础“QueryExecutors”的查询结果 在这种情况下,同一个键由多个“queryexecuters”返回,第一个“queryexecuter” 在输入中被认为具有键的最新状态

func (*QECombiner) GetState

func (c *QECombiner) GetState(namespace string, key string) ([]byte, error)

GetState在接口Ledger.SimpleQueryExecutor中实现函数

func (*QECombiner) GetStateRangeScanIterator

func (c *QECombiner) GetStateRangeScanIterator(namespace string, startKey string, endKey string) (commonledger.ResultsIterator, error)

GetStateRangeScanIterator在接口Ledger.SimpleQueryExecutor中实现函数

type QueryExecuter

type QueryExecuter interface {
	GetState(namespace, key string) (*statedb.VersionedValue, error)
	GetStateRangeScanIterator(namespace, startKey, endKey string) (statedb.ResultsIterator, error)
}

queryexecuter封装了查询函数

type UpdateBatchBackedQueryExecuter

type UpdateBatchBackedQueryExecuter struct {
	UpdateBatch *statedb.UpdateBatch
}

updateBatchBackedQueryExecutor包装更新批,以便在接口“queryExecutor”中提供函数

func (*UpdateBatchBackedQueryExecuter) GetState

GetState implements function in interface 'queryExecuter'

func (*UpdateBatchBackedQueryExecuter) GetStateRangeScanIterator

func (qe *UpdateBatchBackedQueryExecuter) GetStateRangeScanIterator(namespace, startKey, endKey string) (statedb.ResultsIterator, error)

GetStateRangeScanIterator在接口“QueryExecuter”中实现函数

Directories

Path Synopsis
伪造者生成的代码。
伪造者生成的代码。

Jump to

Keyboard shortcuts

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