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

Method ReverseIterator

roaring.go:1013–1017  ·  view source on GitHub ↗

ReverseIterator creates a new IntIterable 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

1011// ReverseIterator creates a new IntIterable to iterate over the integers contained in the bitmap, in sorted order;
1012// the iterator becomes invalid if the bitmap is modified (e.g., with Add or Remove).
1013func (rb *Bitmap) ReverseIterator() IntIterable {
1014 p := new(intReverseIterator)
1015 p.Initialize(rb)
1016 return p
1017}
1018
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).

Callers 5

BenchmarkIterator123Function · 0.95
BenchmarkIteratorAllocFunction · 0.95
TestReverseIteratorCountFunction · 0.45
TestReverseIteratorFunction · 0.45
BackwardFunction · 0.45

Calls 1

InitializeMethod · 0.45

Tested by 4

BenchmarkIterator123Function · 0.76
BenchmarkIteratorAllocFunction · 0.76
TestReverseIteratorCountFunction · 0.36
TestReverseIteratorFunction · 0.36