Package org.apache.iceberg.io
Class ClosingIterator<T>
- java.lang.Object
 - 
- org.apache.iceberg.io.ClosingIterator<T>
 
 
- 
- All Implemented Interfaces:
 java.util.Iterator<T>
public class ClosingIterator<T> extends java.lang.Object implements java.util.Iterator<T>A convenience wrapper aroundCloseableIterator, providing auto-close functionality when all of the elements in the iterator are consumed. 
- 
- 
Constructor Summary
Constructors Constructor Description ClosingIterator(CloseableIterator<T> iterator) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Tnext() 
 - 
 
- 
- 
Constructor Detail
- 
ClosingIterator
public ClosingIterator(CloseableIterator<T> iterator)
 
 - 
 
 -