raw

package
v0.0.0-...-667e438 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StateImpl

type StateImpl struct {
	*db.OpenchainDB
	// contains filtered or unexported fields
}

StateImpl implements raw state management. This implementation does not support computation of crypto-hash of the state. It simply stores the compositeKey and value in the db

func NewStateImpl

func NewStateImpl(db *db.OpenchainDB) *StateImpl

NewStateImpl constructs new instance of raw state

func (*StateImpl) AddChangesForPersistence

func (impl *StateImpl) AddChangesForPersistence(writeBatch *db.DBWriteBatch) error

AddChangesForPersistence - method implementation for interface 'statemgmt.HashableState'

func (*StateImpl) ClearWorkingSet

func (impl *StateImpl) ClearWorkingSet(changesPersisted bool)

ClearWorkingSet - method implementation for interface 'statemgmt.HashableState'

func (*StateImpl) ComputeCryptoHash

func (impl *StateImpl) ComputeCryptoHash() ([]byte, error)

ComputeCryptoHash - method implementation for interface 'statemgmt.HashableState'

func (*StateImpl) Get

func (impl *StateImpl) Get(chaincodeID string, key string) ([]byte, error)

Get - method implementation for interface 'statemgmt.HashableState'

func (*StateImpl) GetRangeScanIterator

func (impl *StateImpl) GetRangeScanIterator(chaincodeID string, startKey string, endKey string) (statemgmt.RangeScanIterator, error)

GetRangeScanIterator - method implementation for interface 'statemgmt.HashableState'

func (*StateImpl) GetSafe

func (impl *StateImpl) GetSafe(_ *db.DBSnapshot, chaincodeID string, key string) ([]byte, error)

func (*StateImpl) GetStateSnapshotIterator

func (impl *StateImpl) GetStateSnapshotIterator(snapshot *db.DBSnapshot) (statemgmt.StateSnapshotIterator, error)

GetStateSnapshotIterator - method implementation for interface 'statemgmt.HashableState'

func (*StateImpl) Initialize

func (impl *StateImpl) Initialize(configs map[string]interface{}) error

Initialize - method implementation for interface 'statemgmt.HashableState'

func (*StateImpl) PerfHintKeyChanged

func (impl *StateImpl) PerfHintKeyChanged(chaincodeID string, key string)

PerfHintKeyChanged - method implementation for interface 'statemgmt.HashableState'

func (*StateImpl) PrepareWorkingSet

func (impl *StateImpl) PrepareWorkingSet(stateDelta *statemgmt.StateDelta) error

PrepareWorkingSet - method implementation for interface 'statemgmt.HashableState'

Jump to

Keyboard shortcuts

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