@Experimental public class GeneratingIteratorSourceReader<E,O,IterT extends Iterator<E>,SplitT extends IteratorSourceSplit<E,IterT>> extends IteratorSourceReaderBase<E,O,IterT,SplitT>
SourceReader
that takes the values of an iterator, supplied via an IteratorSourceSplit
, and applies a GeneratorFunction
to them to perform arbitrary
transformations.Constructor and Description |
---|
GeneratingIteratorSourceReader(SourceReaderContext context,
GeneratorFunction<E,O> generatorFunction) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected O |
convert(E value) |
void |
start(SourceReaderContext context) |
addSplits, isAvailable, notifyNoMoreSplits, pollNext, snapshotState, start
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handleSourceEvents, notifyCheckpointComplete, pauseOrResumeSplits
notifyCheckpointAborted
public GeneratingIteratorSourceReader(SourceReaderContext context, GeneratorFunction<E,O> generatorFunction)
public void start(SourceReaderContext context)
public void close() throws Exception
close
in interface AutoCloseable
close
in class IteratorSourceReaderBase<E,O,IterT extends Iterator<E>,SplitT extends IteratorSourceSplit<E,IterT>>
Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.