Class PulsarSource<T>
java.lang.Object
org.apache.pulsar.functions.source.PulsarSource<T>
- All Implemented Interfaces:
AutoCloseable,Source<T>
- Direct Known Subclasses:
PushPulsarSource,SingleConsumerPulsarSource
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ClassLoaderprotected final org.apache.pulsar.client.api.PulsarClientprotected final PulsarSourceConfigprotected final TopicSchema -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPulsarSource(org.apache.pulsar.client.api.PulsarClient pulsarClient, PulsarSourceConfig pulsarSourceConfig, Map<String, String> properties, ClassLoader functionClassLoader) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.pulsar.functions.source.PulsarSourceConsumerConfig<T>buildPulsarSourceConsumerConfig(String topic, org.apache.pulsar.common.functions.ConsumerConfig conf, Class<?> typeArg) 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) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.AutoCloseable
close
-
Field Details
-
pulsarClient
protected final org.apache.pulsar.client.api.PulsarClient pulsarClient -
pulsarSourceConfig
-
properties
-
functionClassLoader
-
topicSchema
-
-
Constructor Details
-
PulsarSource
protected PulsarSource(org.apache.pulsar.client.api.PulsarClient pulsarClient, PulsarSourceConfig pulsarSourceConfig, Map<String, String> properties, ClassLoader functionClassLoader)
-
-
Method Details
-
getInputConsumers
-
createConsumeBuilder
-
buildRecord
-
buildPulsarSourceConsumerConfig
-