(pl *pb.PostingList)
| 340 | } |
| 341 | |
| 342 | func (mm *MutableLayer) populateUidMap(pl *pb.PostingList) { |
| 343 | if mm.currentUids != nil { |
| 344 | return |
| 345 | } |
| 346 | |
| 347 | mm.currentUids = make(map[uint64]int, len(pl.Postings)) |
| 348 | for i, post := range pl.Postings { |
| 349 | mm.currentUids[post.Uid] = i |
| 350 | } |
| 351 | } |
| 352 | |
| 353 | // insertPosting inserts a new posting in the mutable layers. It updates the currentUids map. |
| 354 | func (mm *MutableLayer) insertPosting(mpost *pb.Posting, hasCountIndex bool) { |
no outgoing calls
no test coverage detected