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

Method UnsetIterator

roaring.go:1029–1033  ·  view source on GitHub ↗

UnsetIterator creates a new IntPeekable to iterate over values in the range [start, end) that are NOT contained in the bitmap. The iterator becomes invalid if the bitmap is modified (e.g., with Add or Remove).

(start, end uint64)

Source from the content-addressed store, hash-verified

1027// UnsetIterator creates a new IntPeekable to iterate over values in the range [start, end) that are NOT contained in the bitmap.
1028// The iterator becomes invalid if the bitmap is modified (e.g., with Add or Remove).
1029func (rb *Bitmap) UnsetIterator(start, end uint64) IntPeekable {
1030 p := new(unsetIterator)
1031 p.Initialize(rb, start, end)
1032 return p
1033}
1034
1035// Clone creates a copy of the Bitmap
1036func (rb *Bitmap) Clone() *Bitmap {

Callers 4

BenchmarkIterateRoaringFunction · 0.95
UnsetFunction · 0.80

Calls 1

InitializeMethod · 0.45

Tested by 3

BenchmarkIterateRoaringFunction · 0.76