MCPcopy
hub / github.com/google/codesearch / postingList

Method postingList

index/read.go:277–285  ·  view source on GitHub ↗
(trigram uint32, restrict []uint32)

Source from the content-addressed store, hash-verified

275}
276
277func (ix *Index) postingList(trigram uint32, restrict []uint32) []uint32 {
278 var r postReader
279 r.init(ix, trigram, restrict)
280 x := make([]uint32, 0, r.max())
281 for r.next() {
282 x = append(x, r.fileid)
283 }
284 return x
285}
286
287func (ix *Index) PostingAnd(list []uint32, trigram uint32) []uint32 {
288 return ix.postingAnd(list, trigram, nil)

Callers 2

PostingListMethod · 0.95
postingQueryMethod · 0.95

Calls 3

initMethod · 0.95
maxMethod · 0.95
nextMethod · 0.95

Tested by

no test coverage detected