MCPcopy Create free account
hub / github.com/RoaringBitmap/roaring / IsEmpty

Method IsEmpty

roaring64/roaring64.go:383–385  ·  view source on GitHub ↗

IsEmpty returns true if the Bitmap is empty (it is faster than doing (GetCardinality() == 0))

()

Source from the content-addressed store, hash-verified

381
382// IsEmpty returns true if the Bitmap is empty (it is faster than doing (GetCardinality() == 0))
383func (rb *Bitmap) IsEmpty() bool {
384 return rb.highlowcontainer.size() == 0
385}
386
387// GetCardinality returns the number of integers contained in the bitmap
388func (rb *Bitmap) GetCardinality() uint64 {

Callers 15

FlipMethod · 0.95
FlipFunction · 0.95
TestCloneOfCOWFunction · 0.95
TestCloneOfCOWRangeFunction · 0.95
validateMethod · 0.45
RemoveMethod · 0.45
CheckedRemoveMethod · 0.45
AndMethod · 0.45
XorMethod · 0.45
AndNotMethod · 0.45
AndFunction · 0.45
XorFunction · 0.45

Calls 1

sizeMethod · 0.45

Tested by 5

TestCloneOfCOWFunction · 0.76
TestCloneOfCOWRangeFunction · 0.76
TestSerializationFunction · 0.36
TestAddCheckedRemove64Function · 0.36
TestClear64Function · 0.36