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 ¶
func (qe *UpdateBatchBackedQueryExecuter) GetState(ns, key string) (*statedb.VersionedValue, error)
GetState implements function in interface 'queryExecuter'
func (*UpdateBatchBackedQueryExecuter) GetStateRangeScanIterator ¶
func (qe *UpdateBatchBackedQueryExecuter) GetStateRangeScanIterator(namespace, startKey, endKey string) (statedb.ResultsIterator, error)
GetStateRangeScanIterator在接口“QueryExecuter”中实现函数
Click to show internal directories.
Click to hide internal directories.