Class TwitterRecord

java.lang.Object
org.apache.pulsar.io.twitter.data.TwitterRecord
All Implemented Interfaces:
org.apache.pulsar.functions.api.Record<TweetData>

public class TwitterRecord extends Object implements org.apache.pulsar.functions.api.Record<TweetData>
Twitter Record object.
  • Constructor Details

    • TwitterRecord

      public TwitterRecord(TweetData tweet, boolean guestimateTweetTime)
  • Method Details

    • getKey

      public Optional<String> getKey()
      Specified by:
      getKey in interface org.apache.pulsar.functions.api.Record<TweetData>
    • getEventTime

      public Optional<Long> getEventTime()
      Specified by:
      getEventTime in interface org.apache.pulsar.functions.api.Record<TweetData>
    • getValue

      public TweetData getValue()
      Specified by:
      getValue in interface org.apache.pulsar.functions.api.Record<TweetData>