Documentation ¶
Index ¶
- type StateImpl
- func (impl *StateImpl) AddChangesForPersistence(writeBatch *gorocksdb.WriteBatch) error
- func (impl *StateImpl) ClearWorkingSet(changesPersisted bool)
- func (impl *StateImpl) ComputeCryptoHash() ([]byte, error)
- func (impl *StateImpl) Get(chaincodeID string, key string) ([]byte, error)
- func (impl *StateImpl) GetRangeScanIterator(chaincodeID string, startKey string, endKey string) (statemgmt.RangeScanIterator, error)
- func (impl *StateImpl) GetStateSnapshotIterator(snapshot *gorocksdb.Snapshot) (statemgmt.StateSnapshotIterator, error)
- func (impl *StateImpl) Initialize(configs map[string]interface{}) error
- func (impl *StateImpl) PerfHintKeyChanged(chaincodeID string, key string)
- func (impl *StateImpl) PrepareWorkingSet(stateDelta *statemgmt.StateDelta) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StateImpl ¶
type StateImpl struct {
// 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() *StateImpl
NewStateImpl constructs new instance of raw state
func (*StateImpl) AddChangesForPersistence ¶
func (impl *StateImpl) AddChangesForPersistence(writeBatch *gorocksdb.WriteBatch) error
AddChangesForPersistence - method implementation for interface 'statemgmt.HashableState'
func (*StateImpl) ClearWorkingSet ¶
ClearWorkingSet - method implementation for interface 'statemgmt.HashableState'
func (*StateImpl) ComputeCryptoHash ¶
ComputeCryptoHash - 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) GetStateSnapshotIterator ¶
func (impl *StateImpl) GetStateSnapshotIterator(snapshot *gorocksdb.Snapshot) (statemgmt.StateSnapshotIterator, error)
GetStateSnapshotIterator - method implementation for interface 'statemgmt.HashableState'
func (*StateImpl) Initialize ¶
Initialize - method implementation for interface 'statemgmt.HashableState'
func (*StateImpl) PerfHintKeyChanged ¶
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'