public class SimpleCloseableInputProvider<E> extends Object implements CloseableInputProvider<E>
| Constructor and Description |
|---|
SimpleCloseableInputProvider(org.apache.flink.util.MutableObjectIterator<E> iterator)
Creates a new simple input provider that will return the given iterator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.apache.flink.util.MutableObjectIterator<E> |
getIterator()
Gets the iterator over this input.
|
public SimpleCloseableInputProvider(org.apache.flink.util.MutableObjectIterator<E> iterator)
iterator - The iterator that will be returned.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic org.apache.flink.util.MutableObjectIterator<E> getIterator()
CloseableInputProvidergetIterator in interface CloseableInputProvider<E>Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.