public class BufferIntIteratorFlyweight extends Object implements PeekableIntIterator
wrap(ImmutableRoaringBitmap)
For better performance, consider the ImmutableRoaringBitmap.forEach(org.roaringbitmap.IntConsumer) method.| Constructor and Description |
|---|
BufferIntIteratorFlyweight()
Creates an instance that is not ready for iteration.
|
BufferIntIteratorFlyweight(ImmutableRoaringBitmap r)
Creates an instance that is ready for iteration.
|
| Modifier and Type | Method and Description |
|---|---|
void |
advanceIfNeeded(int minval)
If needed, advance as long as the next value is smaller than minval
|
PeekableIntIterator |
clone()
Creates a copy of the iterator.
|
boolean |
hasNext() |
int |
next() |
int |
peekNext()
Look at the next value without advancing
|
void |
wrap(ImmutableRoaringBitmap r)
Prepares a bitmap for iteration
|
public BufferIntIteratorFlyweight()
wrap(ImmutableRoaringBitmap).public BufferIntIteratorFlyweight(ImmutableRoaringBitmap r)
r - bitmap to be iterated overpublic PeekableIntIterator clone()
PeekableIntIteratorclone in interface IntIteratorclone in interface PeekableIntIteratorclone in class Objectpublic boolean hasNext()
hasNext in interface IntIteratorpublic int next()
next in interface IntIteratorpublic void wrap(ImmutableRoaringBitmap r)
r - bitmap to be iterated overpublic void advanceIfNeeded(int minval)
PeekableIntIteratoradvanceIfNeeded in interface PeekableIntIteratorminval - thresholdpublic int peekNext()
PeekableIntIteratorpeekNext in interface PeekableIntIteratorCopyright © 2016. All Rights Reserved.