Interface RemoteIterator<E>

All Known Implementing Classes:
BatchedRemoteIterator, FileSystem.DirListingIterator, RemoteIterators.WrappingRemoteIterator

public interface RemoteIterator<E>
An iterator over a collection whose elements need to be fetched remotely
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if the iteration has more elements.
    Returns the next element in the iteration.
  • Method Details

    • hasNext

      boolean hasNext() throws IOException
      Returns true if the iteration has more elements.
      Returns:
      true if the iterator has more elements.
      Throws:
      IOException - if any IO error occurs
    • next

      E next() throws IOException
      Returns the next element in the iteration.
      Returns:
      the next element in the iteration.
      Throws:
      NoSuchElementException - iteration has no more elements.
      IOException - if any IO error occurs