Class WikipediaEditEvent
- java.lang.Object
-
- org.apache.flink.streaming.connectors.wikiedits.WikipediaEditEvent
-
public class WikipediaEditEvent extends Object
Instances of this class represent edits made on Wikipedia.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WikipediaEditEventfromRawEvent(long timestamp, String channel, String rawEvent)intgetByteDiff()StringgetChannel()StringgetDiffUrl()StringgetSummary()longgetTimestamp()Returns the timestamp when this event arrived at the source.StringgetTitle()StringgetUser()booleanisBotEdit()booleanisMinor()booleanisNew()booleanisSpecial()booleanisTalk()booleanisUnpatrolled()StringtoString()
-
-
-
Method Detail
-
getTimestamp
public long getTimestamp()
Returns the timestamp when this event arrived at the source.- Returns:
- The timestamp assigned at the source.
-
getChannel
public String getChannel()
-
getTitle
public String getTitle()
-
getDiffUrl
public String getDiffUrl()
-
getUser
public String getUser()
-
getByteDiff
public int getByteDiff()
-
getSummary
public String getSummary()
-
isMinor
public boolean isMinor()
-
isNew
public boolean isNew()
-
isUnpatrolled
public boolean isUnpatrolled()
-
isBotEdit
public boolean isBotEdit()
-
isSpecial
public boolean isSpecial()
-
isTalk
public boolean isTalk()
-
fromRawEvent
public static WikipediaEditEvent fromRawEvent(long timestamp, String channel, String rawEvent)
-
-