Class BitIterator
- java.lang.Object
-
- org.apache.druid.extendedset.intset.BitIterator
-
- All Implemented Interfaces:
Cloneable,IntSet.IntIterator,org.roaringbitmap.IntIterator
public final class BitIterator extends Object implements IntSet.IntIterator
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntSet.IntIteratorclone()Clone the iteratorbooleanhasNext()intnext()voidskipAllBefore(int element)Skips all the elements before the specified element, so thatIntSet.IntIterator.next()gives the given element or, if it does not exist, the element immediately after according to the sorting provided by this set.
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfaceorg.roaringbitmap.IntIterator- Specified by:
hasNextin interfaceIntSet.IntIterator- Returns:
- true if the iterator has more elements.
-
next
public int next()
- Specified by:
nextin interfaceorg.roaringbitmap.IntIterator- Specified by:
nextin interfaceIntSet.IntIterator- Returns:
- the next element in the iteration.
-
skipAllBefore
public void skipAllBefore(int element)
Description copied from interface:IntSet.IntIteratorSkips all the elements before the specified element, so thatIntSet.IntIterator.next()gives the given element or, if it does not exist, the element immediately after according to the sorting provided by this set.If
elementis less than the next element, it does nothing- Specified by:
skipAllBeforein interfaceIntSet.IntIterator- Parameters:
element- first element to not skip
-
clone
public IntSet.IntIterator clone()
Description copied from interface:IntSet.IntIteratorClone the iterator- Specified by:
clonein interfaceorg.roaringbitmap.IntIterator- Specified by:
clonein interfaceIntSet.IntIterator- Overrides:
clonein classObject- Returns:
- a clone of the IntIterator
-
-