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 and IteratorSourceSplit
type safe.SplitT
- The concrete type of the IteratorSourceSplit
that creates and converts
the iterator that produces this reader's elements.@Public public class IteratorSourceReader<E,IterT extends Iterator<E>,SplitT extends IteratorSourceSplit<E,IterT>> extends IteratorSourceReaderBase<E,E,IterT,SplitT>
SourceReader
that returns the values of an iterator, supplied via an IteratorSourceSplit
.
The IteratorSourceSplit
is also responsible for taking the current iterator and
turning it back into a split for checkpointing.
Constructor and Description |
---|
IteratorSourceReader(SourceReaderContext context) |
Modifier and Type | Method and Description |
---|---|
protected E |
convert(E value) |
addSplits, close, isAvailable, notifyNoMoreSplits, pollNext, snapshotState, start, start
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handleSourceEvents, notifyCheckpointComplete, pauseOrResumeSplits
notifyCheckpointAborted
public IteratorSourceReader(SourceReaderContext context)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.