Class StreamSource<OUT,SRC extends SourceFunction<OUT>>

Type Parameters:
OUT - Type of the output elements
SRC - Type of the source function of this stream source operator
All Implemented Interfaces:
Serializable, org.apache.flink.api.common.state.CheckpointListener, KeyContext, KeyContextHandler, org.apache.flink.streaming.api.operators.OutputTypeConfigurable<OUT>, StreamOperator<OUT>, StreamOperatorStateHandler.CheckpointedStreamOperator, UserFunctionProvider<SRC>, YieldingOperator<OUT>

@Deprecated @Internal public class StreamSource<OUT,SRC extends SourceFunction<OUT>> extends AbstractUdfStreamOperator<OUT,SRC>
Deprecated.
This class is based on the SourceFunction API, which is due to be removed. Use the new Source API instead.
StreamOperator for streaming sources.
See Also:
  • Constructor Details

    • StreamSource

      public StreamSource(SRC sourceFunction, boolean emitProgressiveWatermarks)
      Deprecated.
    • StreamSource

      public StreamSource(SRC sourceFunction)
      Deprecated.
  • Method Details

    • emitsProgressiveWatermarks

      @VisibleForTesting public boolean emitsProgressiveWatermarks()
      Deprecated.
    • run

      public void run(Object lockingObject, OperatorChain<?,?> operatorChain) throws Exception
      Deprecated.
      Throws:
      Exception
    • run

      public void run(Object lockingObject, Output<StreamRecord<OUT>> collector, OperatorChain<?,?> operatorChain) throws Exception
      Deprecated.
      Throws:
      Exception
    • close

      public void close() throws Exception
      Deprecated.
      Description copied from interface: StreamOperator
      This method is called at the very end of the operator's life, both in the case of a successful completion of the operation, and in the case of a failure and canceling.

      This method is expected to make a thorough effort to release all resources that the operator has acquired.

      NOTE:It can not emit any records! If you need to emit records at the end of processing, do so in the StreamOperator.finish() method.

      Specified by:
      close in interface StreamOperator<OUT>
      Overrides:
      close in class AbstractUdfStreamOperator<OUT,SRC extends SourceFunction<OUT>>
      Throws:
      Exception
    • stop

      public void stop()
      Deprecated.
    • cancel

      public void cancel()
      Deprecated.
    • markCanceledOrStopped

      protected void markCanceledOrStopped()
      Deprecated.
      Marks this source as canceled or stopped.

      This indicates that any exit of the run(Object, Output, OperatorChain) method cannot be interpreted as the result of a finite source.

    • isCanceledOrStopped

      protected boolean isCanceledOrStopped()
      Deprecated.
      Checks whether the source has been canceled or stopped.
      Returns:
      True, if the source is canceled or stopped, false is not.