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

Method IsEmpty

roaring.go:1242–1244  ·  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

1240
1241// IsEmpty returns true if the Bitmap is empty (it is faster than doing (GetCardinality() == 0))
1242func (rb *Bitmap) IsEmpty() bool {
1243 return rb.highlowcontainer.size() == 0
1244}
1245
1246// GetCardinality returns the number of integers contained in the bitmap
1247func (rb *Bitmap) GetCardinality() uint64 {

Callers 9

PreviousValueMethod · 0.95
TestExample2_roaring061Function · 0.45
smatIsEmptyFunction · 0.45
TestCloneOfCOWFunction · 0.45
TestValidate469Function · 0.45
doubleFlipInvariantFunction · 0.45
newBitmapContainerHeapFunction · 0.45
ParOrFunction · 0.45
addDigitMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by 4

TestExample2_roaring061Function · 0.36
TestCloneOfCOWFunction · 0.36
TestValidate469Function · 0.36
doubleFlipInvariantFunction · 0.36