trie

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2016 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RangeScanIterator

type RangeScanIterator struct {
	// contains filtered or unexported fields
}

RangeScanIterator implements the interface 'statemgmt.RangeScanIterator'

func (*RangeScanIterator) Close

func (itr *RangeScanIterator) Close()

Close - see interface 'statemgmt.RangeScanIterator' for details

func (*RangeScanIterator) GetKeyValue

func (itr *RangeScanIterator) GetKeyValue() (string, []byte)

GetKeyValue - see interface 'statemgmt.RangeScanIterator' for details

func (*RangeScanIterator) Next

func (itr *RangeScanIterator) Next() bool

Next - see interface 'statemgmt.RangeScanIterator' for details

type StateSnapshotIterator

type StateSnapshotIterator struct {
	// contains filtered or unexported fields
}

StateSnapshotIterator implements the interface 'statemgmt.StateSnapshotIterator'

func (*StateSnapshotIterator) Close

func (snapshotItr *StateSnapshotIterator) Close()

Close - see interface 'statemgmt.StateSnapshotIterator' for details

func (*StateSnapshotIterator) GetRawKeyValue

func (snapshotItr *StateSnapshotIterator) GetRawKeyValue() ([]byte, []byte)

GetRawKeyValue - see interface 'statemgmt.StateSnapshotIterator' for details

func (*StateSnapshotIterator) Next

func (snapshotItr *StateSnapshotIterator) Next() bool

Next - see interface 'statemgmt.StateSnapshotIterator' for details

type StateTrie

type StateTrie struct {
	// contains filtered or unexported fields
}

func NewStateTrie

func NewStateTrie() *StateTrie

func (*StateTrie) AddChangesForPersistence

func (stateTrie *StateTrie) AddChangesForPersistence(writeBatch *gorocksdb.WriteBatch) error

func (*StateTrie) ClearWorkingSet

func (stateTrie *StateTrie) ClearWorkingSet(changesPersisted bool)

func (*StateTrie) ComputeCryptoHash

func (stateTrie *StateTrie) ComputeCryptoHash() ([]byte, error)

func (*StateTrie) Get

func (stateTrie *StateTrie) Get(chaincodeID string, key string) ([]byte, error)

func (*StateTrie) GetRangeScanIterator

func (stateTrie *StateTrie) GetRangeScanIterator(chaincodeID string, startKey string, endKey string) (statemgmt.RangeScanIterator, error)

func (*StateTrie) GetStateSnapshotIterator

func (stateTrie *StateTrie) GetStateSnapshotIterator(snapshot *gorocksdb.Snapshot) (statemgmt.StateSnapshotIterator, error)

GetStateSnapshotIterator - method implementation for interface 'statemgmt.HashableState'

func (*StateTrie) Initialize

func (stateTrie *StateTrie) Initialize(configs map[string]interface{}) error

func (*StateTrie) PerfHintKeyChanged

func (stateTrie *StateTrie) PerfHintKeyChanged(chaincodeID string, key string)

func (*StateTrie) PrepareWorkingSet

func (stateTrie *StateTrie) PrepareWorkingSet(stateDelta *statemgmt.StateDelta) error

Jump to

Keyboard shortcuts

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