类 BufferReverseIntIteratorFlyweight

java.lang.Object
org.bitlap.roaringbitmap.buffer.BufferReverseIntIteratorFlyweight
所有已实现的接口:
Cloneable, IntIterator

public class BufferReverseIntIteratorFlyweight extends Object implements IntIterator
Fast iterator minimizing the stress on the garbage collector. You can create one reusable instance of this class and then wrap(ImmutableRoaringBitmap) This iterator enumerates the stored values in reverse (starting from the end).
  • 构造器详细资料

    • BufferReverseIntIteratorFlyweight

      public BufferReverseIntIteratorFlyweight()
      Creates an instance that is not ready for iteration. You must first call wrap(ImmutableRoaringBitmap).
    • BufferReverseIntIteratorFlyweight

      public BufferReverseIntIteratorFlyweight(ImmutableRoaringBitmap r)
      Creates an instance that is ready for iteration.
      参数:
      r - bitmap to be iterated over
  • 方法详细资料

    • clone

      public IntIterator clone()
      从接口复制的说明: IntIterator
      Creates a copy of the iterator.
      指定者:
      clone 在接口中 IntIterator
      覆盖:
      clone 在类中 Object
      返回:
      a clone of the current iterator
    • hasNext

      public boolean hasNext()
      指定者:
      hasNext 在接口中 IntIterator
      返回:
      whether there is another value
    • next

      public int next()
      指定者:
      next 在接口中 IntIterator
      返回:
      next integer value
    • wrap

      public void wrap(ImmutableRoaringBitmap r)
      Prepares a bitmap for iteration
      参数:
      r - bitmap to be iterated over