Class PulsarSource<T>

java.lang.Object
org.apache.pulsar.functions.source.PulsarSource<T>
All Implemented Interfaces:
AutoCloseable, Source<T>
Direct Known Subclasses:
PushPulsarSource, SingleConsumerPulsarSource

public abstract class PulsarSource<T> extends Object implements Source<T>
  • Field Details

    • pulsarClient

      protected final org.apache.pulsar.client.api.PulsarClient pulsarClient
    • pulsarSourceConfig

      protected final PulsarSourceConfig pulsarSourceConfig
    • properties

      protected final Map<String,String> properties
    • functionClassLoader

      protected final ClassLoader functionClassLoader
    • topicSchema

      protected final TopicSchema topicSchema
  • Constructor Details

  • Method Details

    • getInputConsumers

      public abstract List<org.apache.pulsar.client.api.Consumer<T>> getInputConsumers()
    • createConsumeBuilder

      protected org.apache.pulsar.client.api.ConsumerBuilder<T> createConsumeBuilder(String topic, org.apache.pulsar.functions.source.PulsarSourceConsumerConfig conf)
    • buildRecord

      protected Record<T> buildRecord(org.apache.pulsar.client.api.Consumer<T> consumer, org.apache.pulsar.client.api.Message<T> message)
    • buildPulsarSourceConsumerConfig

      protected org.apache.pulsar.functions.source.PulsarSourceConsumerConfig<T> buildPulsarSourceConsumerConfig(String topic, org.apache.pulsar.common.functions.ConsumerConfig conf, Class<?> typeArg)