Class ClosingIterator<T>

java.lang.Object
org.apache.iceberg.io.ClosingIterator<T>
All Implemented Interfaces:
Iterator<T>

public class ClosingIterator<T> extends Object implements Iterator<T>
A convenience wrapper around CloseableIterator, providing auto-close functionality when all of the elements in the iterator are consumed.
  • Constructor Details

  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<T>
    • next

      public T next()
      Specified by:
      next in interface Iterator<T>