MCPcopy Index your code
hub / github.com/RoaringBitmap/roaring / rank

Method rank

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

rank returns the number of integers that are smaller or equal to x. rank(infinity) would be getCardinality().

(uint16)

Source from the content-addressed store, hash-verified

27 // rank returns the number of integers that are
28 // smaller or equal to x. rank(infinity) would be getCardinality().
29 rank(uint16) int
30
31 // getCardinalityInRange returns the number of integers that are
32 // within the half-open range [start, end). It is equivalent to

Callers 3

RankMethod · 0.65
TestRle16Rank020Function · 0.65
TestArrayContainerRankFunction · 0.65

Implementers 3

bitmapContainerbitmapcontainer.go
runContainer16runcontainer.go
arrayContainerarraycontainer.go

Calls

no outgoing calls

Tested by 2

TestRle16Rank020Function · 0.52
TestArrayContainerRankFunction · 0.52