Class IteratorSourceReader<E,IterT extends Iterator<E>,SplitT extends IteratorSourceSplit<E,IterT>>
- java.lang.Object
-
- org.apache.flink.api.connector.source.lib.util.IteratorSourceReaderBase<E,E,IterT,SplitT>
-
- org.apache.flink.api.connector.source.lib.util.IteratorSourceReader<E,IterT,SplitT>
-
- Type Parameters:
E- The type of events returned by the reader.IterT- The type of the iterator that produces the events. This type exists to make the conversion between iterator andIteratorSourceSplittype safe.SplitT- The concrete type of theIteratorSourceSplitthat creates and converts the iterator that produces this reader's elements.
- All Implemented Interfaces:
AutoCloseable,CheckpointListener,SourceReader<E,SplitT>
@Public public class IteratorSourceReader<E,IterT extends Iterator<E>,SplitT extends IteratorSourceSplit<E,IterT>> extends IteratorSourceReaderBase<E,E,IterT,SplitT>
ASourceReaderthat returns the values of an iterator, supplied via anIteratorSourceSplit.The
IteratorSourceSplitis also responsible for taking the current iterator and turning it back into a split for checkpointing.
-
-
Constructor Summary
Constructors Constructor Description IteratorSourceReader(SourceReaderContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Econvert(E value)-
Methods inherited from class org.apache.flink.api.connector.source.lib.util.IteratorSourceReaderBase
addSplits, close, isAvailable, notifyNoMoreSplits, pollNext, snapshotState, start, start
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.api.common.state.CheckpointListener
notifyCheckpointAborted
-
Methods inherited from interface org.apache.flink.api.connector.source.SourceReader
handleSourceEvents, notifyCheckpointComplete, pauseOrResumeSplits
-
-
-
-
Constructor Detail
-
IteratorSourceReader
public IteratorSourceReader(SourceReaderContext context)
-
-