MCPcopy Create free account
hub / github.com/ByteStorage/FlyDB / NewART

Function NewART

engine/index/art.go:21–26  ·  view source on GitHub ↗

NewART Initializes the adaptive radix tree index

()

Source from the content-addressed store, hash-verified

19
20// NewART Initializes the adaptive radix tree index
21func NewART() *AdaptiveRadixTree {
22 return &AdaptiveRadixTree{
23 tree: art.New(),
24 lock: new(sync.RWMutex),
25 }
26}
27
28func (artree *AdaptiveRadixTree) Put(key []byte, pst *data.LogRecordPst) bool {
29 artree.lock.Lock()

Callers 6

NewIndexerFunction · 0.85

Calls

no outgoing calls

Tested by 5