T - Type of the data output by the source.public class CollectionSourceFunction<T> extends Object implements SourceFunction<T>
SourceFunction.SourceContext<T>| Constructor and Description |
|---|
CollectionSourceFunction(Collection<T> values) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
fetch(SourceFunction.SourceContext<T> ctx) |
void |
init(int totalParallel,
int currentIndex) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitloadCheckpoint, saveCheckpointpublic CollectionSourceFunction(Collection<T> values)
public void init(int totalParallel,
int currentIndex)
init in interface SourceFunction<T>public void fetch(SourceFunction.SourceContext<T> ctx) throws Exception
fetch in interface SourceFunction<T>Exceptionpublic void close()
close in interface SourceFunction<T>Copyright © 2021. All rights reserved.