Class PulsarRecord<T>

    • Constructor Summary

      Constructors 
      Constructor Description
      PulsarRecord()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void ack()  
      void fail()  
      java.util.Optional<org.apache.pulsar.common.api.EncryptionContext> getEncryptionCtx()
      Retrieves encryption-context that is attached to record.
      java.util.Optional<java.lang.Long> getEventTime()  
      java.util.Optional<java.lang.String> getKey()  
      java.util.Optional<org.apache.pulsar.client.api.Message<T>> getMessage()  
      org.apache.pulsar.client.api.MessageId getMessageId()  
      java.util.Optional<java.lang.String> getPartitionId()  
      java.util.Optional<java.lang.Integer> getPartitionIndex()  
      java.util.Map<java.lang.String,​java.lang.String> getProperties()  
      java.util.Optional<java.lang.Long> getRecordSequence()  
      org.apache.pulsar.client.api.Schema<T> getSchema()  
      java.util.Optional<java.lang.String> getTopicName()  
      T 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

        getDestinationTopic
    • Constructor Detail

      • PulsarRecord

        public PulsarRecord()
    • Method Detail

      • getKey

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

        public java.util.Optional<java.lang.String> getTopicName()
        Specified by:
        getTopicName in interface org.apache.pulsar.functions.api.Record<T>
      • getPartitionIndex

        public java.util.Optional<java.lang.Integer> getPartitionIndex()
        Specified by:
        getPartitionIndex in interface org.apache.pulsar.functions.api.Record<T>
      • getPartitionId

        public java.util.Optional<java.lang.String> getPartitionId()
        Specified by:
        getPartitionId in interface org.apache.pulsar.functions.api.Record<T>
      • getRecordSequence

        public java.util.Optional<java.lang.Long> getRecordSequence()
        Specified by:
        getRecordSequence in interface org.apache.pulsar.functions.api.Record<T>
      • getValue

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

        public org.apache.pulsar.client.api.Schema<T> getSchema()
        Specified by:
        getSchema in interface org.apache.pulsar.functions.api.Record<T>
      • getEventTime

        public java.util.Optional<java.lang.Long> getEventTime()
        Specified by:
        getEventTime in interface org.apache.pulsar.functions.api.Record<T>
      • getProperties

        public java.util.Map<java.lang.String,​java.lang.String> getProperties()
        Specified by:
        getProperties in interface org.apache.pulsar.functions.api.Record<T>
      • getMessageId

        public org.apache.pulsar.client.api.MessageId getMessageId()
      • ack

        public void ack()
        Specified by:
        ack in interface org.apache.pulsar.functions.api.Record<T>
      • fail

        public void fail()
        Specified by:
        fail in interface org.apache.pulsar.functions.api.Record<T>
      • getMessage

        public java.util.Optional<org.apache.pulsar.client.api.Message<T>> getMessage()
        Specified by:
        getMessage in interface org.apache.pulsar.functions.api.Record<T>