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.
This class is based on the SourceFunction API, which is due to be removed. Use the new Source API instead.
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:
  • Constructor Details

    • RichParallelSourceFunction

      public RichParallelSourceFunction()
      Deprecated.