Documentation ¶
Index ¶
- Constants
- Variables
- type ADS
- func (mads *ADS) ActiveCount() int
- func (mads *ADS) BeginWrite(height int64)
- func (mads *ADS) CheckConsistency()
- func (mads *ADS) CheckHashConsistency()
- func (mads *ADS) Close()
- func (mads *ADS) DeactivateEntry(shardID int, sn int64)
- func (mads *ADS) Delete(key []byte)
- func (mads *ADS) EndWrite()
- func (mads *ADS) GetCurrHeight() int64
- func (mads *ADS) GetEntry(k []byte) *Entry
- func (mads *ADS) GetEntryAtHeight(k []byte, height uint64) *Entry
- func (mads *ADS) GetProof(k []byte) (entryBz, proofBz []byte, err error)
- func (mads *ADS) GetRootHash() []byte
- func (mads *ADS) PrepareForDeletion(k []byte) (findIt bool)
- func (mads *ADS) PrepareForUpdate(k []byte)
- func (mads *ADS) PrintIdxTree()
- func (mads *ADS) PrintMetaInfo()
- func (mads *ADS) PruneBeforeHeight(height int64)
- func (mads *ADS) ScanAll(fn func(key, value []byte))
- func (mads *ADS) Set(key, value []byte)
- type BucketMap
- type BucketSet
- type Entry
- type HotEntry
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 NewOverOldFile *os.File = nil
View Source
var Phase1n2Time, Phase1Time, Phase2Time, Phase3Time, Phase4Time, Phase0Time uint64
Functions ¶
This section is empty.
Types ¶
type ADS ¶
type ADS struct {
// contains filtered or unexported fields
}
func NewADS4Mock ¶
func (*ADS) ActiveCount ¶
func (*ADS) BeginWrite ¶
func (*ADS) CheckConsistency ¶
func (mads *ADS) CheckConsistency()
func (*ADS) CheckHashConsistency ¶
func (mads *ADS) CheckHashConsistency()
func (*ADS) DeactivateEntry ¶ added in v0.6.2
func (*ADS) GetCurrHeight ¶
func (*ADS) GetRootHash ¶
func (*ADS) PrepareForDeletion ¶
func (*ADS) PrepareForUpdate ¶
func (*ADS) PrintIdxTree ¶
func (mads *ADS) PrintIdxTree()
func (*ADS) PrintMetaInfo ¶
func (mads *ADS) PrintMetaInfo()
func (*ADS) PruneBeforeHeight ¶
type BucketMap ¶
type BucketMap struct {
// contains filtered or unexported fields
}
func NewBucketMap ¶
type BucketSet ¶
type BucketSet struct {
// contains filtered or unexported fields
}
func NewBucketSet ¶
Click to show internal directories.
Click to hide internal directories.