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