Class WikipediaEditsSource

  • All Implemented Interfaces:
    Serializable, org.apache.flink.api.common.functions.Function, org.apache.flink.api.common.functions.RichFunction, org.apache.flink.streaming.api.functions.source.SourceFunction<WikipediaEditEvent>

    @Deprecated
    public class WikipediaEditsSource
    extends org.apache.flink.streaming.api.functions.source.RichSourceFunction<WikipediaEditEvent>
    Deprecated.
    This class is based on the SourceFunction API, which is due to be removed. Use the new Source API instead.
    This class is a SourceFunction that reads WikipediaEditEvent instances from the IRC channel #en.wikipedia.
    See Also:
    Serialized Form
    • Field Detail

      • DEFAULT_HOST

        public static final String DEFAULT_HOST
        Deprecated.
        Hostname of the server to connect to.
        See Also:
        Constant Field Values
      • DEFAULT_PORT

        public static final int DEFAULT_PORT
        Deprecated.
        Port of the server to connect to.
        See Also:
        Constant Field Values
    • Constructor Detail

      • WikipediaEditsSource

        public WikipediaEditsSource()
        Deprecated.
        Creates a source reading WikipediaEditEvent instances from the IRC channel #en.wikipedia.

        This creates a separate Thread for the IRC connection.

      • WikipediaEditsSource

        public WikipediaEditsSource​(String host,
                                    int port,
                                    String channel)
        Deprecated.
        Creates a source reading WikipediaEditEvent instances from the specified IRC channel.

        In most cases, you want to use the default WikipediaEditsSource(java.lang.String, int, java.lang.String) constructor. This constructor is meant to be used only if there is a problem with the default constructor.

        Parameters:
        host - The IRC server to connect to.
        port - The port of the IRC server to connect to.
        channel - The channel to join. Messages not matching the expected format will be ignored.
    • Method Detail

      • cancel

        public void cancel()
        Deprecated.