Documentation ¶
Index ¶
- Constants
- Variables
- type BucketMap
- type BucketSet
- type Entry
- type HotEntry
- type MoeingADS
- func (mads *MoeingADS) ActiveCount() int
- func (mads *MoeingADS) BeginWrite(height int64)
- func (mads *MoeingADS) CheckConsistency()
- func (mads *MoeingADS) CheckHashConsistency()
- func (mads *MoeingADS) Close()
- func (mads *MoeingADS) DeactiviateEntry(shardID int, sn int64)
- func (mads *MoeingADS) Delete(key []byte)
- func (mads *MoeingADS) EndWrite()
- func (mads *MoeingADS) GetCurrHeight() int64
- func (mads *MoeingADS) GetEntry(k []byte) *Entry
- func (mads *MoeingADS) GetEntryAtHeight(k []byte, height uint64) *Entry
- func (mads *MoeingADS) GetProof(k []byte) (entryBz, proofBz []byte, err error)
- func (mads *MoeingADS) GetRootHash() []byte
- func (mads *MoeingADS) PrepareForDeletion(k []byte) (findIt bool)
- func (mads *MoeingADS) PrepareForUpdate(k []byte)
- func (mads *MoeingADS) PrintIdxTree()
- func (mads *MoeingADS) PrintMetaInfo()
- func (mads *MoeingADS) PruneBeforeHeight(height int64)
- func (mads *MoeingADS) ScanAll(fn func(key, value []byte))
- func (mads *MoeingADS) Set(key, value []byte)
Constants ¶
View Source
const ( KeptEntriesToActiveEntriesRatio = 2 BucketCount = 64 JobChanSize = 256 MinDeactiveEntries = 100 //minimum deactived entry count in each round of compaction MinKeptTwigs = 10 //minimum kept twig count in each shard )
View Source
const ( DefaultHPFileSize int = 1024 * 1024 * 1024 StartReapThres int64 = 1000 * 1000 HPFileBufferSize int = datatree.BufferSize RootCacheSizeLimit int = 1024 * 1024 )
Variables ¶
View Source
var DebugPanicNumber int //not used
View Source
var Phase1n2Time, Phase1Time, Phase2Time, Phase3Time, Phase4Time, Phase0Time uint64
Functions ¶
This section is empty.
Types ¶
type BucketMap ¶
type BucketMap struct {
// contains filtered or unexported fields
}
func NewBucketMap ¶
type BucketSet ¶ added in v0.2.0
type BucketSet struct {
// contains filtered or unexported fields
}
func NewBucketSet ¶ added in v0.2.0
type MoeingADS ¶
type MoeingADS struct {
// contains filtered or unexported fields
}
func NewMoeingADS ¶
func NewMoeingADS4Mock ¶
func (*MoeingADS) ActiveCount ¶
func (*MoeingADS) BeginWrite ¶
func (*MoeingADS) CheckConsistency ¶
func (mads *MoeingADS) CheckConsistency()
func (*MoeingADS) CheckHashConsistency ¶ added in v0.3.0
func (mads *MoeingADS) CheckHashConsistency()
func (*MoeingADS) DeactiviateEntry ¶
func (*MoeingADS) GetCurrHeight ¶
func (*MoeingADS) GetEntryAtHeight ¶ added in v0.4.0
func (*MoeingADS) GetRootHash ¶
func (*MoeingADS) PrepareForDeletion ¶
func (*MoeingADS) PrepareForUpdate ¶
func (*MoeingADS) PrintIdxTree ¶ added in v0.1.2
func (mads *MoeingADS) PrintIdxTree()
func (*MoeingADS) PrintMetaInfo ¶
func (mads *MoeingADS) PrintMetaInfo()
func (*MoeingADS) PruneBeforeHeight ¶
Click to show internal directories.
Click to hide internal directories.