MCPcopy Create free account
hub / github.com/dgraph-io/dgraph-benchmarks / ApproxLen

Method ApproxLen

bitmap/codec.go:226–234  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

224
225// ApproxLen returns the approximate number of UIDs in the UidPack object.
226func (d *Decoder) ApproxLen() int {
227 if d == nil {
228 return 0
229 }
230 if d.Pack == nil {
231 return 0
232 }
233 return int(d.Pack.BlockSize) * (len(d.Pack.Blocks) - d.blockIdx)
234}
235
236type searchFunc func(int) bool
237

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected