Package org.apache.iceberg.io
Interface CloseableIterator<T>
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.Closeable
,java.util.Iterator<T>
- All Known Implementing Classes:
DataIterator
,FilterIterator
,VectorizedRowBatchIterator
public interface CloseableIterator<T> extends java.util.Iterator<T>, java.io.Closeable
-
-
Method Summary
Static Methods Modifier and Type Method Description static <E> CloseableIterator<E>
empty()
static <I,O>
CloseableIterator<O>transform(CloseableIterator<I> iterator, java.util.function.Function<I,O> transform)
static <E> CloseableIterator<E>
withClose(java.util.Iterator<E> iterator)
-
-
-
Method Detail
-
empty
static <E> CloseableIterator<E> empty()
-
withClose
static <E> CloseableIterator<E> withClose(java.util.Iterator<E> iterator)
-
transform
static <I,O> CloseableIterator<O> transform(CloseableIterator<I> iterator, java.util.function.Function<I,O> transform)
-
-