接口 ContainerBatchIterator

所有超级接口:
Cloneable
所有已知实现类:
ArrayBatchIterator, ArrayBatchIterator, BitmapBatchIterator, BitmapBatchIterator, RunBatchIterator, RunBatchIterator

public interface ContainerBatchIterator extends Cloneable
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    advanceIfNeeded(char target)
    Advance until the value.
    Creates a copy of the iterator.
    boolean
    Whether the underlying container is exhausted or not
    int
    next(int key, int[] buffer)
    Fills the buffer with values prefixed by the key, and returns how much of the buffer was used.
    void
    Discard the reference to the container
  • 方法详细资料

    • next

      int next(int key, int[] buffer)
      Fills the buffer with values prefixed by the key, and returns how much of the buffer was used.
      参数:
      key - the prefix of the values
      buffer - the buffer to write values onto
      返回:
      how many values were written.
    • hasNext

      boolean hasNext()
      Whether the underlying container is exhausted or not
      返回:
      true if there is data remaining
    • clone

      Creates a copy of the iterator.
      返回:
      a clone of the current iterator
    • releaseContainer

      void releaseContainer()
      Discard the reference to the container
    • advanceIfNeeded

      void advanceIfNeeded(char target)
      Advance until the value.
      参数:
      target - the value to advance to.