MCPcopy
hub / github.com/RoaringBitmap/roaring / getCardinalityInRange

Method getCardinalityInRange

roaringarray.go:34–34  ·  view source on GitHub ↗

getCardinalityInRange returns the number of integers that are within the half-open range [start, end). It is equivalent to rank(end-1) - rank(start-1) but may be faster.

(start, end uint)

Source from the content-addressed store, hash-verified

32 // within the half-open range [start, end). It is equivalent to
33 // rank(end-1) - rank(start-1) but may be faster.
34 getCardinalityInRange(start, end uint) int
35
36 iadd(x uint16) bool // inplace, returns true if x was new.
37 iaddReturnMinimized(uint16) container // may change return type to minimize storage.

Callers 2

CardinalityInRangeMethod · 0.65

Implementers 3

bitmapContainerbitmapcontainer.go
runContainer16runcontainer.go
arrayContainerarraycontainer.go

Calls

no outgoing calls

Tested by

no test coverage detected