Class TwitterRecord

  • All Implemented Interfaces:
    org.apache.pulsar.functions.api.Record<TweetData>

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

      Constructors 
      Constructor Description
      TwitterRecord​(TweetData tweet, boolean guestimateTweetTime)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<java.lang.Long> getEventTime()  
      java.util.Optional<java.lang.String> getKey()  
      TweetData getValue()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.pulsar.functions.api.Record

        ack, fail, getDestinationTopic, getMessage, getPartitionId, getPartitionIndex, getProperties, getRecordSequence, getSchema, getTopicName
    • Constructor Detail

      • TwitterRecord

        public TwitterRecord​(TweetData tweet,
                             boolean guestimateTweetTime)
    • Method Detail

      • getKey

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

        public java.util.Optional<java.lang.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>