public abstract class PulsarSource<T> extends Object implements Source<T>
| Modifier and Type | Field and Description |
|---|---|
protected ClassLoader |
functionClassLoader |
protected Map<String,String> |
properties |
protected org.apache.pulsar.client.api.PulsarClient |
pulsarClient |
protected PulsarSourceConfig |
pulsarSourceConfig |
protected TopicSchema |
topicSchema |
| Modifier | Constructor and Description |
|---|---|
protected |
PulsarSource(org.apache.pulsar.client.api.PulsarClient pulsarClient,
PulsarSourceConfig pulsarSourceConfig,
Map<String,String> properties,
ClassLoader functionClassLoader) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.pulsar.functions.source.PulsarSourceConsumerConfig<T> |
buildPulsarSourceConsumerConfig(String topic,
org.apache.pulsar.common.functions.ConsumerConfig conf,
Class<?> typeArg) |
protected Record<T> |
buildRecord(org.apache.pulsar.client.api.Consumer<T> consumer,
org.apache.pulsar.client.api.Message<T> message) |
protected org.apache.pulsar.client.api.ConsumerBuilder<T> |
createConsumeBuilder(String topic,
org.apache.pulsar.functions.source.PulsarSourceConsumerConfig conf) |
abstract List<org.apache.pulsar.client.api.Consumer<T>> |
getInputConsumers() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseprotected final org.apache.pulsar.client.api.PulsarClient pulsarClient
protected final PulsarSourceConfig pulsarSourceConfig
protected final ClassLoader functionClassLoader
protected final TopicSchema topicSchema
protected PulsarSource(org.apache.pulsar.client.api.PulsarClient pulsarClient,
PulsarSourceConfig pulsarSourceConfig,
Map<String,String> properties,
ClassLoader functionClassLoader)
public abstract List<org.apache.pulsar.client.api.Consumer<T>> getInputConsumers()
protected org.apache.pulsar.client.api.ConsumerBuilder<T> createConsumeBuilder(String topic, org.apache.pulsar.functions.source.PulsarSourceConsumerConfig conf)
protected Record<T> buildRecord(org.apache.pulsar.client.api.Consumer<T> consumer, org.apache.pulsar.client.api.Message<T> message)
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.