T - the type of elements returned by this iterator@Evolving public interface CloseableIterator<T> extends java.util.Iterator<T>, java.io.Closeable
Iterator| Modifier and Type | Method and Description |
|---|---|
default CloseableIterator<T> |
combine(CloseableIterator<T> other)
Combine the current iterator with another iterator.
|
default CloseableIterator<T> |
filter(java.util.function.Function<T,Boolean> mapper) |
boolean |
hasNext()
Returns true if the iteration has more elements.
|
default <U> CloseableIterator<U> |
map(java.util.function.Function<T,U> mapper) |
T |
next()
Returns the next element in the iteration.
|
boolean hasNext()
hasNext in interface java.util.Iterator<T>KernelEngineException - For any underlying exception occurs in Engine while
trying to execute the operation. The original exception is (if any) wrapped in this
exception as cause. E.g. IOException thrown while trying to read from a Delta log
file. It will be wrapped in this exception as cause.KernelException - When encountered an operation or state that is invalid or unsupported.T next()
next in interface java.util.Iterator<T>java.util.NoSuchElementException - if the iteration has no more elementsKernelEngineException - For any underlying exception occurs in Engine while
trying to execute the operation. The original exception is (if any) wrapped in this
exception as cause. E.g. IOException thrown while trying to read from a Delta log
file. It will be wrapped in this exception as cause.KernelException - When encountered an operation or state that is invalid or unsupported
in Kernel. For example, trying to read from a Delta table that has advanced features which
are not yet supported by Kernel.default <U> CloseableIterator<U> map(java.util.function.Function<T,U> mapper)
default CloseableIterator<T> filter(java.util.function.Function<T,Boolean> mapper)
default CloseableIterator<T> combine(CloseableIterator<T> other)
other - the other iterator to combine with