Class RichParallelSourceFunction<OUT>
java.lang.Object
org.apache.flink.api.common.functions.AbstractRichFunction
org.apache.flink.streaming.api.functions.source.legacy.RichParallelSourceFunction<OUT>
- Type Parameters:
OUT- The type of the records produced by this source.
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.functions.Function,org.apache.flink.api.common.functions.RichFunction,ParallelSourceFunction<OUT>,SourceFunction<OUT>
- Direct Known Subclasses:
FromSplittableIteratorFunction,InputFormatSourceFunction,StatefulSequenceSource
@Internal
public abstract class RichParallelSourceFunction<OUT>
extends org.apache.flink.api.common.functions.AbstractRichFunction
implements ParallelSourceFunction<OUT>
Deprecated.
Base class for implementing a parallel data source. Upon execution, the runtime will execute as
many parallel instances of this function as configured parallelism of the source.
The data source has access to context information (such as the number of parallel instances of
the source, and which parallel instance the current instance is) via AbstractRichFunction.getRuntimeContext(). It also provides additional life-cycle methods (AbstractRichFunction.open(OpenContext)
and AbstractRichFunction.close().
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.flink.streaming.api.functions.source.legacy.SourceFunction
SourceFunction.SourceContext<T> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.flink.api.common.functions.AbstractRichFunction
close, getIterationRuntimeContext, getRuntimeContext, open, setRuntimeContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.streaming.api.functions.source.legacy.SourceFunction
cancel, run
-
Constructor Details
-
RichParallelSourceFunction
public RichParallelSourceFunction()Deprecated.
-
SourceFunctionAPI, which is due to be removed. Use the newSourceAPI instead.