0
0
Fork 0

scorch zap use roaring Add() instead of AddInt()

This change invokes Add() directly as AddInt() is a convenience
wrapper around Add().
This commit is contained in:
Steve Yen 2018-03-11 16:30:52 -07:00
parent f9545bef2f
commit 531800c479
1 changed files with 2 additions and 2 deletions

View File

@ -334,7 +334,7 @@ func (s *interim) processDocument(docNum uint64,
for term, tf := range tfs {
pid := dict[term] - 1
bs := s.Postings[pid]
bs.AddInt(int(docNum))
bs.Add(uint32(docNum))
s.FreqNorms[pid] = append(s.FreqNorms[pid],
interimFreqNorm{
@ -344,7 +344,7 @@ func (s *interim) processDocument(docNum uint64,
if len(tf.Locations) > 0 {
locBS := s.PostingsLocs[pid]
locBS.AddInt(int(docNum))
locBS.Add(uint32(docNum))
locs := s.Locs[pid]