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

Method ManyIterator

roaring.go:1021–1025  ·  view source on GitHub ↗

ManyIterator creates a new ManyIntIterable to iterate over the integers contained in the bitmap, in sorted order; the iterator becomes invalid if the bitmap is modified (e.g., with Add or Remove).

()

Source from the content-addressed store, hash-verified

1019// ManyIterator creates a new ManyIntIterable to iterate over the integers contained in the bitmap, in sorted order;
1020// the iterator becomes invalid if the bitmap is modified (e.g., with Add or Remove).
1021func (rb *Bitmap) ManyIterator() ManyIntIterable {
1022 p := new(manyIntIterator)
1023 p.Initialize(rb)
1024 return p
1025}
1026
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).

Callers 12

BenchmarkIterator123Function · 0.95
BenchmarkIteratorAllocFunction · 0.95
BenchmarkNextsFunction · 0.95
BenchmarkNextsRLEFunction · 0.95
TestNextManyFunction · 0.45
BenchmarkOrsFunction · 0.45
setupRandomFunction · 0.45
parallelExecutorFunction · 0.45
MinMaxMethod · 0.45

Calls 1

InitializeMethod · 0.45

Tested by 9

BenchmarkIterator123Function · 0.76
BenchmarkIteratorAllocFunction · 0.76
BenchmarkNextsFunction · 0.76
BenchmarkNextsRLEFunction · 0.76
TestNextManyFunction · 0.36
BenchmarkOrsFunction · 0.36
setupRandomFunction · 0.36