Class WikipediaEditsSource
- java.lang.Object
-
- org.apache.flink.api.common.functions.AbstractRichFunction
-
- org.apache.flink.streaming.api.functions.source.RichSourceFunction<WikipediaEditEvent>
-
- org.apache.flink.streaming.connectors.wikiedits.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 theSourceFunctionAPI, which is due to be removed. Use the newSourceAPI instead.This class is a SourceFunction that readsWikipediaEditEventinstances from the IRC channel#en.wikipedia.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.streaming.api.functions.source.SourceFunction
org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_CHANNELDeprecated.IRC channel to join.static StringDEFAULT_HOSTDeprecated.Hostname of the server to connect to.static intDEFAULT_PORTDeprecated.Port of the server to connect to.
-
Constructor Summary
Constructors Constructor Description WikipediaEditsSource()Deprecated.Creates a source readingWikipediaEditEventinstances from the IRC channel#en.wikipedia.WikipediaEditsSource(String host, int port, String channel)Deprecated.Creates a source readingWikipediaEditEventinstances from the specified IRC channel.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidcancel()Deprecated.voidrun(org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<WikipediaEditEvent> ctx)Deprecated.
-
-
-
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
-
DEFAULT_CHANNEL
public static final String DEFAULT_CHANNEL
Deprecated.IRC channel to join.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WikipediaEditsSource
public WikipediaEditsSource()
Deprecated.Creates a source readingWikipediaEditEventinstances 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 readingWikipediaEditEventinstances 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
-
run
public void run(org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<WikipediaEditEvent> ctx) throws Exception
Deprecated.- Throws:
Exception
-
cancel
public void cancel()
Deprecated.
-
-