Interface BatchIterator


public interface BatchIterator
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true is there are more values to get.
    int
    nextBatch(int[] buffer)
    Writes the next batch of integers onto the buffer, and returns how many were written.
  • Method Details

    • nextBatch

      int nextBatch(int[] buffer)
      Writes the next batch of integers onto the buffer, and returns how many were written. Aims to fill the buffer.
      Parameters:
      buffer - - the target to write onto
      Returns:
      how many values were written during the call.
    • hasNext

      boolean hasNext()
      Returns true is there are more values to get.
      Returns:
      whether the iterator is exhaused or not.