MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / ApproxLen

Method ApproxLen

codec/codec.go:203–211  ·  view source on GitHub ↗

ApproxLen returns the approximate number of UIDs in the pb.UidPack object.

()

Source from the content-addressed store, hash-verified

201
202// ApproxLen returns the approximate number of UIDs in the pb.UidPack object.
203func (d *Decoder) ApproxLen() int {
204 if d == nil {
205 return 0
206 }
207 if d.Pack == nil {
208 return 0
209 }
210 return int(d.Pack.BlockSize) * (len(d.Pack.Blocks) - d.blockIdx)
211}
212
213type searchFunc func(int) bool
214

Callers 1

IntersectCompressedWithFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected