Class AbstractSinkRecord<T>

java.lang.Object
org.apache.pulsar.functions.instance.AbstractSinkRecord<T>
All Implemented Interfaces:
Record<T>
Direct Known Subclasses:
OutputRecordSinkRecord, SinkRecord

public abstract class AbstractSinkRecord<T> extends Object implements Record<T>
  • Constructor Details

    • AbstractSinkRecord

      protected AbstractSinkRecord(Record<?> sourceRecord)
  • Method Details

    • shouldAlwaysSetMessageProperties

      public abstract boolean shouldAlwaysSetMessageProperties()
    • shouldSetSchema

      public abstract boolean shouldSetSchema()
    • getSourceRecord

      public Record<?> getSourceRecord()
    • getTopicName

      public Optional<String> getTopicName()
      Specified by:
      getTopicName in interface Record<T>
    • ack

      public void ack()
      Specified by:
      ack in interface Record<T>
    • cumulativeAck

      public void cumulativeAck()
      Some sink sometimes wants to control the ack type.
    • individualAck

      public void individualAck()
      Some sink sometimes wants to control the ack type.
    • fail

      public void fail()
      Specified by:
      fail in interface Record<T>
    • getRecordSchema

      protected static <T> org.apache.pulsar.client.api.Schema<T> getRecordSchema(Record<T> record)